Viewing 8 replies - 1 through 8 (of 8 total)
  • Works. Thanks!

    Hi,

    When I try to apply your fix, it shows me an error 500 page after I publish posts on the website and doesn’t even show up in the Instant Articles feed… What am I doing wrong here?

    Thanks in advance

    I add $html->setAttribute(‘dir’,’rtl’); to the script . now my articles look like
    <!doctype html><html dir="rtl"><head><link rel="canonical"......

    but in the front end, it didn’t make any changes. still all articles show LTR, which we don’t want, because we use Farsi and Pashto languages which are RTL.

    I hope the developers of ( Instant Articles for WP) must take this problem series and came up with a nice solation.
    I saw in this forum there so many requests about RTL Support which are somehow ignored. We really need help in this regard.

    Thanks

    Thanks for this post but it only solves part of the problem.

    It sets the HTML to RTL but many inner tages such as H and others are still doing LTR and mixed content of Arabic/Hebrew/Farsi/Etc. and English is unreadable.

    P.S – Not sure line 266 is the right place now for this change. I’ve added the RTL code to the file inside the function toDOMElement after setting HTML element at $html = $document->createElement(‘html’);

    Thanks, worked for me but Instead of line 266 just search about
    $html = $document->createElement('html');
    and add this line after it
    $html->setAttribute('dir','rtl');

    Thank you for the input on RTL guys, I was wondering can RTL be set for individual posts, since on my website we both have content in english and arabic ?

    It depends on the plugin that you used for multilingual. WPML supports that, and I think qtranslate too.

    I trying to type the content in RTL within the search input box without switching the OS input method. Eg. Even if the OS input method is EN, I want the content typed in the search box to be in RTL language and in RTL direction.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘RTL Support’ is closed to new replies.