Hello,
Working on a multi country website, each country could have more than one lang.
For countries, a new WordPress taxonomy has been built, and now i can assign posts to countries.
How can i create templates copy, and where can i find them, also if you can advice on customizing them to display all posts related to a specific country together.
Permalink structure is mydomain.com/language/country/postname.
Thank you
Hello,
You need to translate the English (original language) the template for each language in part – https://i.imgur.com/CDmeHCf.png you should have them for each language cloud template – https://i.imgur.com/4agmUtg.png
A much simpler and faster alternative is to duplicate the cloud template you want to use in another language, edit it and select the desired language – https://i.imgur.com/z1CqgBo.png (edit the name) – https://i.imgur.com/dPX8ROs.png – https://i.imgur.com/Lc81IgP.png This method needs to be used to translate all cloud templates.
The pages are created with tagDiv Composer which is a page builder, when WPML is used it cannot translate everything that was built with the page builder and must be edited for each language separately. Please open the page in the editor and click on translate – https://i.imgur.com/TXH6y1c.png. After, if you duplicate the template, you can edit it to change the logo, menu, and whatever you want.
When you make the corrections, make sure you are on the page with the language you are editing, and if you use the cache, or object cache, please clear it.
Please check this topic https://forum.tagdiv.com/topic/missing-strings-on-wpml/
Thank you!
Hello,
Thank u so much for the support
However, I got a bit confused.
1.For the Home Page template, i will need to duplicate a template for each new language, and rename it correct?
2.if i do so, how can i find this new template file using ftp? since i will have to add some code in that template.
3.any idea how can i filter the template so that it displays posts from a specific category or taxonomy i.e country?
Thank you so much
Hello,
1. Yes, you need to duplicate the page.
2. Please let me know what code you have added there. You can also, duplicate the template and the code it will remain.
3. Please let me know on what templates you can to display posts from a specific category. There a lot of filter options, you can check this guide -> https://forum.tagdiv.com/flex-block-settings-guide/
Thank you!
1. I imported the RTL Default Cloud template, i renamed it to Home For my Arabic language, i also selected Arabic from WPML. Question: where can i find this home page file or template in my theme?
2. How can i add it to my child’s theme to make sure updates does not change my home page?
3. Should i set it to Global?
4. What does global do?
5. How can i export and import a template to another language?
Hello,
Did you have tried the steps from here ” A much simpler and faster alternative is to duplicate the cloud template you want to use in another language, edit it and select the desired language – https://i.imgur.com/z1CqgBo.png (edit the name) – https://i.imgur.com/dPX8ROs.png – https://i.imgur.com/Lc81IgP.png This method needs to be used to translate all cloud templates.”?
The cloud templates are in the cloud templates section https://i.imgur.com/EYUGxIR.png
Global” means setting a global template, for example, a header for all pages and a template for the respective language.
It is not necessary to set them in the child theme.
Thank you!
Hello Anamaria,
Many thanks for your kind support.
1.There’s a theme bug, i cannot find the Home Template in the English lang as in here https://ibb.co/5hgrthT , also when i try to import https://ibb.co/9qQRz0t and set it as the front page, i get the error here https://ibb.co/7RwM3W3
2.When i try to duplicate a page to change its language to the new ar-EG language, the page does not replicate https://ibb.co/3Mp4Jys
3.I followed your steps, however, the permalinks has the word “category” always https://ibb.co/28sTgS6 , it should not be there. i clicked on the “Save” button to reset the permalinks, and i also cleared the cach with no success.
i need to have the below homepages.
1. English Lang ( /en ) – using the Default Pro Homepage template.
2. Arabic Lang ( /ar ) – using the RTL Default Pro Homepage template.
3. Arabic Lang Egypt ( /ar-EG ) – using the RTL Default Pro Homepage template.
Appreciate your kind support, i also emailed you the access url and username and pass.
i resolved the issues above, only have the issue below now.
i created an ar-eg language, the template is a copy from your Default Pro RTL, however, it seems that RTL is not applied.
i added the code below in the custom code to solve the RTL issue:
html[lang="ar"],
html[lang="ar-eg"] {
direction: rtl;
text-align: right;
}
however, the issue in the footer and header as in the images occurred https://ibb.co/VTkqTvY
https://ibb.co/DW6KJxq
also the problem of not being able to assign a Global Homepage template in the Arabic language.
i’ve already emailed you the access credentials, appreciate advising on how you resolved it.
Thank you
-
This reply was modified 1 year by
snoopy.