Search Results Header & Footer
-
I have tried using the information from this post to create a conditional statement for different headers and footers in my search results: https://www.ads-software.com/support/topic/how-to-search-results-landing-page-with-custom-header-for-each-language?replies=3
I used this code in my search.php template for the custom headers and footers for each language:
<?php $currentlang = get_bloginfo('language'); if($currentlang=="en_US"): get_header(); elseif($currentlang=="fr_FR"): get_header('fr'); elseif($currentlang=="en_GB"): get_header('uk'); else: get_header('de'); endif; ?>
The code is not working, because it keeps the headers and footers for DE for every language. Any help is greatly appreciated.
- The topic ‘Search Results Header & Footer’ is closed to new replies.