Custom search result page assign category

I designed my custom search result page via the “archive” method as recommended here:

How can I add a category to the archive?
Reason: I use custom headers which use category for their location. Pages with category A display header A and pages with category B display header B.

Is it possible to have multiple search result pages based on from where the search was initiated?
Example:
Pages for language A have their own custom header including a search button. The results should be displayed on an according language A result page.
And then there are language B pages with language B custom header with another search button.

Both searches call the same result page (archive) for the moment. I have to change that.

Hello @VRANKOVINA,

Thanks for writing in!

You will have to pass a parameter so that the Search Result archive layout will know which page it came from. Please check out this reference URL:

You can use the URL parameter in your condition to display which header should be displayed.

Hope this makes sense.

Thx a heap for the info.

Kind regards

Hi @VRANKOVINA,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.