Different template for different language

Posted in: Newspaper
Post count: 4

Hello,
I have a multi-language website (English & Arabic) and I use “Polylang” addon.
I want to use a different template for each language (for example: Search template and 404 template), when i go to “newspaper theme panel” then “template settings” then “Search template” for example and choose a template (the English one) it applies on both Arabic and English language, but I need the “Search Page” to be in Arabic when the user is using the Arabic interface.
How can I achieve this?

Post count: 27744

Hello,

Please check this topic https://forum.tagdiv.com/topic/footer-for-dual-language-website/, the steps are the same for each cloud templates.

Thank you!

Post count: 4

Thank you Anamaria for your reply, I think my problem is different than the one mentioned in the link you provided.
I have no problem in the header and footer and some other templates (Like post template for example).
My problem is specifically in the “Search” and “404” templates, theme configurations do not allow me to choose a different template for each language (for example, when I choose the English template of Search it applies on the Arabic interface as well.
If I change the interface to Arabic and choose the Arabic search template, it applies to the English too as well.

Post count: 27744

Hello,

Unfortunately, this plugin is not tested with the theme, but if you agree, we can take a look, maybe we can help you.
Please provide wp-admin and cPanel URL and credentials. Our team will take a look and let you know what can be done!

Thank you!

Post count: 4

Sure why not, I prefer that but is it safe to post the credentials here?

Post count: 27744

Hi,

I apologise for forgetting to explain that all of this information should be sent to contact@tagdiv.com through email.

Thank you!

Post count: 4

Thank you for the clarification, I just sent you the required info by email

Post count: 6

Hi there rahimahwaz2020,

have you found the solution for “404” and “search template”? I also have the same issue with the Author’s template, it switches for all language versions.

Post count: 27744

Hello,

You need to select the language and import the template.

Thank you!

Post count: 6

I have three different templates for each language. When applying the template to the corresponding language, the template applies to all language versions.

Img

Post count: 27744

Hello,

Please let me know what plugin you use for translation.

Thank you!

Post count: 6

Polylang.


This is an example of what happens if I apply the German Template.
I understand that it could be the Polylang that makes a conflict, it would be helpful though if you could point out which PHP files should I look at to make some editing.

Thank you!

Post count: 27744

Hi,

If you like, we can take a look and let’s try to help you.

Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cpanel url and credentials
– a link to this topic in order to identify you

Thank you!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.