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.

This topic contains 1 reply, has 2 voices.

Last updated by Mihai Apetrei 10 months, 4 weeks ago.

Assigned support staff: Mihai Apetrei.

Author Posts
July 1, 2019 at 3:33 pm #4120973


When selecting a right-to-left language the plug in is changing the layout completely to right to left, which is messing up the website. We want to translate the words but we want to keep the theme left-to-right so it is not messing up the layout.

July 1, 2019 at 5:05 pm #4121335

Mihai Apetrei

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi and thank you for contacting WPML Support!

I will be happy to help you with this.

You could use this hook for that (define which languages are RTL):

Or you could create a plugin (a .php file inside wp-content/plugins):

Plugin Name: My RTL langs

add_filter( 'wpml_rtl_languages_codes', 'my_rtl_langs');

function my_rtl_langs() {
	return array( 'ar', 'he', 'fa', 'ur' ) ;

I hope that you will find this information helpful.

Please let me know how that goes 🙂

Kind regards,
Mihai Apetrei