Two Search Templates

Posted in: Newspaper
Post count: 32

Hello,

My website is in two languages, Spanish (original) and English (translation), using WPML as recommended.

The Spanish website has a header in Spanish, and the English website has a header in English. Both headers have a search function.

I have designed a search template in Spanish, and another search template in English.

How can I force the theme to pick the English Search Template when a search is done through the English header, instead of the default one in Spanish?

Post count: 21065

Hello @Fryant !

Do you have two cloud templates for search and have you also translated them? Then it should work well. It is displaying the same link in Spanish; it doesn’t matter which template is used, right? Can you please provide more information about your issue?

Thank you!

Post count: 32

Somehow it seems to be fixed now, yeah. I marked the English version as global, unmarked it, and marked the Spanish version as global, and now it works.

Thank you for the help!

What about the 404 template? Is there any way I can apply different 404 templates according to language?

Post count: 21065

Hello @fryant !

You can do it the same and translate the template.

Thank you!

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