Setting different font for Visual editor in RTL mode
-
I’ve added RTL support to my theme and now wanted to also create an editor-style-rtl.css.
I already have an rtl.css file which has all the changes to style the editor so that users have a great visual of what the post will look like in the visual editor.My theme base font is set to Georgia. In my editor-style-rtl.css I’ve set the following:
html .mceContentBody { direction: rtl; unicode-bidi: embed; } * { font-family: Arial, Helvetica, sans-serif; }
I’ve tried adding the font-family to body, to html, to *, to everything, I can not get the editor to display the font in Arial. I’ve read that it’s important to use sans-serif fonts for RTL languages and thus wanted to get the visual editor to display arial, but I can’t get it to work.
I went on the WordPress.com as well and tried a few themes that have Serif fonts, changed my language to Farsi and the visual editor doesn’t change the font-family. Perhaps this is not possible to do? Have anyone had any success?
- The topic ‘Setting different font for Visual editor in RTL mode’ is closed to new replies.