[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[SociallyViral] Only Front End For Arabic Language (Rtl)


qamar356
 Share

Recommended Posts

Hello,

 

Sure. Here is how to change it:

 

Find this part in functions.php file

 

function mts_rtl() {

 

Add this code right after it:

 

if ( is_admin() ) {
   return;
  }

 

So it should look like this:

 

function mts_rtl() {
  if ( is_admin() ) {
   return;
  }
  global $wp_locale, $wp_styles;
  $wp_locale->text_direction = 'rtl';

 

I'd like to add that we are rolling out the same change for all our themes, in our newer and updated themes RTL is only applied to the front end. So this change will probably be applied to SociallyViral too in a future update.

 

Hope that helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...