Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #2139112
RTL Arabic Language issues
Closed

Comments

  • mmh2005 started the conversation

    I bought thegem wordpress theme and I want to add arabic language to the site , I bought WPML plugin and install it but so many issues in the arabic pages , suddenly the logo moved from left to right , also some pictures get stretched .. how can I make the arabic translated page to be the same like the english page exactly ???? be noted that arabic language is RTL .

    also the counter part in the arabic page is not centered as the english page .. 

    Why the whole theme is converted to RTL with the language ??? it should be the language only converted not the theme itself ?? how to solve this ??

    please check the site : www.abeerlawyer.com ( the english ) and www.abeerlawyer.com/ar  ( the arabic ) and see how difference ???

  •  7,092
    Oliver replied

    Hi,

    It's normal because the theme is RTL ready, it's made for RTL style. 

    Try to add this code to the functions.php of the child theme to disable RTL:

    add_filter( 'body_class', 'remove_rtl_btag' );
    function remove_rtl_btag($classes) {
        if( is_rtl() ) {
            $key = array_search( 'rtl', $classes );
            unset($classes[$key]);
        }
     
        return $classes;
    }
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • mmh2005 replied

    Thanks for your reply Gregor , and I'd like to ask you to be patient with me as I'm not a web developer .

    I searched about the functions.php file and I can see only one in the path :

    " public_html/wp-content/themes/thegem/functions.php " and I edit it and add your code at the end of the file but nothing changed .

    I don't know if there is another functions.php file that belongs to the arabic page or not ??

    I don't know where the arabic page saving its files to check about its functions.php , I will attach the functions.php with this message to see and tell me if this is the right file or not !! ( please change the extension of the file from jpg to php )

    Thanks again for your support and waiting for your answer.


  •  7,092
    Oliver replied

    Hi,

    pls. give me wp-admin and FTP access

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   mmh2005 replied privately
  •  7,092
    Oliver replied

    pls. check now, I've deactivated RTL style

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   mmh2005 replied privately
  •  7,092
    Oliver replied

    Hi,

    Try to deactivate parallax in the row settings and check.


    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   mmh2005 replied privately
  • mmh2005 replied

    Solved , Thanks Gregor , I edit the row stretch to be ( stretch row and contents no paddings ) .


    Thanks for your support

  •  7,092
    Oliver replied

    Ok, thank you for letting know

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver