Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #940485

    Hi,

    What i did:
    1. installed RTL version of wordpress (latest 4.9.5)
    2. export/import a site from an LTR installation (using all-in-one-wp-migration plugin)
    3. created rtl.css file (note: the ltr and the rtl are using child-theme)

    my problem – nothing actually changed and the site is still LTR (checking the html shows that the “dir” attribute of the HTML tag is set to “ltr”.

    what am i doing wrong?

    I want the layout to change completely to RTL
    (I know how to css what should be css’ed, but not familiar with wordpress and themes)

    #941384

    Hey ddccoil,

    Thank you for using Enfold.

    Did you set the site language option to a language that supports RTL? The theme should automatically load the default rtl.css file when the current locale or language supports rtl so you don’t have to create another. It’s in the functions.php file.

    if ( is_rtl() ) {
    	wp_enqueue_style(  'avia-rtl',  $template_url."/css/rtl.css", array(), $vn, 'all' );
    }
    

    Remove the is_rtl function if you want to load the stylesheet regardless of the language settings.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.