This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Diego Pereira 7 months, 3 weeks ago.

Assigned support staff: Diego Pereira.

Author Posts
February 26, 2019 at 9:14 pm #3247397

christinaR-3

I am trying to: align the list block to the right

Link to a page where the issue can be seen: it is not published yet

I expected to see: the bullets on the right indented and the text aligned to the right

Instead, I got: bullets on the right not indented. the text aligned to the left.

Also, is there a way to align the text to both sides?

February 27, 2019 at 7:07 pm #3252283

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @christinar-3, welcome to the WPML support Forum!

This issue seems related to CSS (and not with WPML). The RTL mode is set by your theme through CSS. For instance:

p.rtl {
  direction: rtl;
}

The code above will set the text with the .rtl class with right-to-left text direction.

Probably some CSS related to the element is missing. If you want, I can take a look at the CSS of the page. In this case, please send us the link of the page with the issue.

All the best,
Diego

March 1, 2019 at 9:49 am #3259381

christinaR-3

Thank you for your reply.
The page is not published yet.
Here is the link to the post-draft and the login details:

[content removed]

March 1, 2019 at 5:18 pm #3262434

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Please add the following code to Appearance > Customize > Additional CSS:

body.rtl ul, body.rtl ul li {
    text-align: right;
}

It should align the list items to the right on RTL languages.

Please let me know if it worked for you.

Kind regards,
Diego