Is it possible to get a different header.php on language switch with qtranslate? [closed]
IT Nursery
May 18, 2022
0
the problem is that on home page I have a lot of code which is added through header.php and it is not amendable through admin panel. What I want to do is to switch header files on language switch. Whenever a user press on the language icon, lets say on the English language icon the header should also switch from <?php get_header('mylanguage') ?> to <?php get_header('english') ?> or etc. Is it possible to do like this?
Regards,
1 Answer 1
Following the codex about the get_header function
You must have an archive header-de.php in your template.
Create one for each language you have and adjust the switch accordingly.