I am an editor on the WordPress website and when I published a post in Arabic, and I want to change the direction of the Title in a post from left to the right how can I do that in WordPress!
CodePudding user response:
Open the header.php file and Replace it with the below code
<body <? php body_class(); ?>>
with: <body <? php body_class(); ?> dir="ltr">
Save the file and clear the cache and cookie and try. but make sure here this dir="ltr"
only needs to add when you open the blog page.
CodePudding user response:
Step 1 – Ensure your WordPress theme has RTL support go to /wp-content/themes/yourtheme and look for a file called rtl.css. I
Step 2 – Test RTL support Go to Plugins -> Add New and search for “RTL Tester” after instal it: Once you click “Switch to RTL” the WordPress user interface switches to RTL mode.
Step 3 – Enable RTL Support permanently Open up your wp-config.php and add the following:
define ('WPLANG', 'ar');
Then hop on over to Settings -> General -> Site Language – and select your language.
read more:How to enable Right-to-left (RTL) support in WordPress