Site logo

Archived topic

Right To Left Typing

1 reply · Started by Michelle on April 14, 2022

Viewing posts 1–2 of 2

How do I enable right-to-left typing in GeneratePress? And, for that matter, I don't see any way to change fonts mid-sentence or mid-paragraph. My posts will feature ancient languages and I need to be able to switch back-and-forth between languages on the page. I am shocked to not find font choices even in classic paragraph. Any help is appreciated. If I can't do this, then this is all for nothing.

Hi Michelle,

With regards to the right-to-left functionality, translate plugins like WPML should also allow this: https://wpml.org/tutorials/2011/06/creating-right-to-left-rtl-wordpress-sites/

Or you can try to use a third part plugin like this for instance: https://createandcode.com/how-to-enable-right-to-left-rtl-support-in-wordpress/#:~:text=Go%20to%20Plugins%20%2D%3E%20Add%20New,on%20the%20WordPress.org%20repo.&text=Once%20you%20click%20%E2%80%9CSwitch%20to,displays%20Right%2Dto%2Dleft.
GeneratePress should adapt to this.

You may also refer to this: https://codex.wordpress.org/Right-to-Left_Language_Support

GeneratePress should adapt its text direction to the language you’re using.

Doing this for specific text groups should also be possible through CSS: https://www.w3schools.com/cssref/pr_text_direction.asp

With regards to changing the font of a text inside a paragraph, with GenerateBlocks Headline Blocks, you may utilize the inline-width functionality, which in turn would make Headline Blocks inline. Then you may modify the fonts of inline blocks.

For instance, see this: https://share.getcloudapp.com/7KuQzWXO

You may also do it programatically, by using the code editor and placing a specific text inside a <span class=“my-font”>insert text here</span> as such: https://share.getcloudapp.com/DOu4lKZe

Then, add a CSS like this: https://share.getcloudapp.com/ApuJvgbJ

.my-font {
    font-family:cursive;
    font-size:50px;
}

Kindly replace the font-family to your preferred font-family. Make sure the font-family is enqueued as well.

Hope this clarifies. Feel free to reach out if further assistance is needed. :)

This archived topic is closed to new replies.