• Resolved smartIt

    (@smartit)


    First of all thank you for this plugin, it worked perfectly well from the first attempt, unlike what have been reported for the official plugin.
    I just have a little problem though, in the fb instant article, the text inside paragraphs having dir=”rtl” attribute is displayed from left to right, it should be displayed from right to left.
    in wordpress it is displayed correctly but not in instant articles despite having the attribute dir=”rtl”in all paragraphs
    Here is an example article https://www.facebook.com/Radiostounsi/posts/1965035830431987
    And here is the source code generated by the plugin https://justpaste.it/17a86

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author shawfactor

    (@shawfactor)

    smartIt,

    that class on the paragraph is not something supported by facebook instant articles, it is just a relic of the the class that wordpress uses to support rtl text.

    Unfortunately instant articles only support rtl at article level:

    https://developers.facebook.com/docs/instant-articles/reference/article

    so I am niot sure what I can do if you want to support both left to right and right to left in the same article?

    Any ideas, i am happy to look at it if you only want it at article level but I don’t want to add an extra field per article.

    Thread Starter smartIt

    (@smartit)

    Hi,
    Thank you for your help, I solved the problem by adding manually dir=”rtl” to the html tag, now the text is displaying properly
    Is there a way to add this tag automatically with the plugin ? I Don’t know if this is related https://github.com/facebook/facebook-instant-articles-sdk-php/issues/175

    Plugin Author shawfactor

    (@shawfactor)

    The question is how would the wife see determine if the article is right to left?

    I really don’t want to add an option to every post, and some sites (like yours) have an official language fr-fr (French I think). Which is left to right but have occasional right to left articles.

    A per post option is overkill and ugly so I’m reluctant to do that but I can’t think of anything else? Your thoughts?

    Pete

    Thread Starter smartIt

    (@smartit)

    I understand your point of view here, maybe a checkbox in general settings to activate rtl dir option per post, so the majority of users who doesn’t use rtl don’t get bothered by an unnecessary option in every post.

    • This reply was modified 7 years, 6 months ago by smartIt.
    Plugin Author shawfactor

    (@shawfactor)

    Good idea I’ll add that to my roadmap, might be a month or so though.

    Plugin Author shawfactor

    (@shawfactor)

    Resolving this for good order, it will still be monitored though.

    Thread Starter smartIt

    (@smartit)

    Thank you so much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘dir=”rtl” not having effect’ is closed to new replies.