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: Documentation request
This topic contains 3 replies, has 2 voices.
Last updated by Christopher Amirian 1 year, 9 months ago.
Assisted by: Christopher Amirian.
Author | Posts |
---|---|
July 16, 2023 at 10:38 pm #14045471 | |
stirlingA-2 |
Hi I am creating a Hebrew version of my site stirlingaustin.com and have a couple of questions. On the Hebrew version of the repertoire page, hidden link I want the page content to appear in the same order as the English version, eg swing on the left and soul, etc on the right. How can this be done? (if I do it manually on the Hebrew elementor editor it reverts when updating translations.) Also, I want to have the English blog page and posts visible in the Hebrew menu and version, with both the archive page and posts remaining in English(eg duplicated, not translated). I have tried creating a hebrew version of the archive page, but the excerpts show rtl instead of ltr, like wise the english text reverses on the post. Is there a way to have the archive page and posts appear exactly as per the English version within the hebrew menu? thanks Stirling |
July 17, 2023 at 6:54 am #14046145 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi Stirling, Let's first have an initial explanation so we are on the same page. WPML does not have anything to do with the RTL or LTR design, and it is all the theme. The only styling that WOPML adds is for the language switcher. Having said that Hebrew is an RTL language and your theme detects it, as WPML adds an HTML attribute announcing that this page is Hebrew. The rest is your theme (or the page builder you use). Now, if you want to selectively change the direction of a page you have two choices: Use manual translation You can select to have a manual translation for a specific page in WPML and then you will have access to Elementor without the fear of the translated page being overwritten after an update. That means you will lose the ability to use the Advanced Translation Editor for that page as manual translation and ATE are separate tools and can not be used at the same time on a page. Here is more information about the manual translation: Add custom CSS The other method is to selectively add custom CSS code for the section in question for that page and only for Hebrew. You just need to add :lang(he-IL) at the end of your CSS selector and apply it only for Hebrew. For the example of the page you have mentioned, the code below will reverse the direction only for the swing/classic Elementor section: .elementor-element-1730e8f:lang(he-IL) { direction: ltr; } ------------------- For the second question I am not sure what you want to achieve, but WPML has a built in method to show untranslated content this way: Thanks. |
July 24, 2023 at 6:39 am #14085859 | |
stirlingA-2 |
Hi Christoper, that works great! |
July 24, 2023 at 8:27 am #14087005 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
I'm glad that I could be of help 🙂 |