• Resolved employ33

    (@employ33)


    I have seen there might be a support for right-to-left forms in the plugin folder (rtl.css)
    I am using a right-to-left language, is there a way of making the forms RTL friendly? for example the text on the right and the textboxes on the left.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi there,

    First of all, please *briefly* try it with the default WordPress theme Twenty Seventeen.

    Does it look all right with that?

    With the best of regards,

    Thread Starter employ33

    (@employ33)

    Yes it looks excellent in Twenty Seventeen, but my question was how to show the forms from right to left?

    Hello there,

    It would appear that a bit of clarification is necessary.

    Does it look excellent in Twenty Seventeen, *with* a right to left language?

    Best of wishes,

    Thread Starter employ33

    (@employ33)

    I’d be happy to clarify further.
    Using a right to left language alone works good no matter what the theme is.
    The problem is that the whole form has to support right to left (for example, the whole text needs to be aligned to the right of the form. and the text boxes should be left of the text (The opposite from English, where the text is on the left and the text boxes are on the right).

    I have meddled a bit with the plugin source code and found the file features/functions.php, I found in line 44 a check named is_rtl(), I have no idea how that function decides to return true or false but I changed that to true, that did half the job. So I am still looking for a solution which fully supports right to left forms

    Hi there,

    Sorry for insisting on this, but I need a clear answer on this testing with Twenty Seventeen.

    Because first you say that using a right to left language alone works good no matter what the theme is. But then you say that it does not work good for forms.

    My complete question is, therefore. Does the the Profile Builder form look all right in Twenty Seventeen with your RTL language?

    The is_rtl() function appears to be a default WordPress function, described here. If it is not firing properly, then it must be a WordPress bug. Perhaps your language is not correctly marked as RTL. Try with another RTL language, maybe.

    But first, please answer my complete question regarding the test with Twenty Seventeen.

    Thread Starter employ33

    (@employ33)

    I decided to attach images in order to clarify what I mean

    Here is the form that contains the Hebrew language with the Astra theme (which is typed right to left):

    View post on imgur.com

    Here is the form that contains the Hebrew language with the Twenty Seventeen theme:

    View post on imgur.com

    As you can see, the result is quite similar and using Hebrew works good no matter what the theme is.

    My problem is that the forms are not right to left aligned, for example, here is my desired result which I edited with paint:

    View post on imgur.com

    I hope it is more understood now, if not, I’d be happy to clarify further.

    Thread Starter employ33

    (@employ33)

    Eventually I found a solution that is more or less adequate to what I wanted. I had to change my website settings to Hebrew for the whole form to the right aligned.
    The problem is that not all the website is in Hebrew, which kind of sucks when a page in English is right aligned.
    If there was a plugin-only locale that would have been the best solution

    Hello there,

    Yes, if you need WordPress to know that you’re using a RTL language, you need to select it as your website language.

    Otherwise WordPress can not know.

    Cheers,

    Thread Starter employ33

    (@employ33)

    Of course, but I wanted it to be plugin specific. Or even form specific, for example, for one form it will be right-aligned and for another left-aligned

    Hey there,

    Knowing this from the beginning would have saved us a certain amount of time, sorry that I forgot to ask for making it clear.

    Best,
    Gabriel

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Right to left’ is closed to new replies.