Hardcode in the header.php to display language-switch Flags
-
Hey WordPress Community 🙂
My project is available in different language versions.
I want to get some flags in my header so its possible to switch between these versions in a comfortable way.As far as I know I should put the html hardcode directly into the themes header.php, right?
But everytime I insert my code it doesnt work, so Im not sure If I just dont know where to put it in the file or if its a complete other problem?
Does anybody got an idea or a solution? I would be very thankful for some help or maybe a workaround, I really got stuck.
Thank you a lot in advance and best regards from Berlin, Germany 🙂
Nicolas—
Some infos for my problem:The Site is gexso[dot]com (gexso[dot]com/en for the english version)
I dont use a multisite installation or plugin, its just different independent wordpress installations which are linked to each other.HTML Flag Code:
<a href="http://gexso.com/de/"><img src="http://www.gexso.com/de/wp-content/uploads/2014/09/de.gif" border="0" alt=„Deutsche Sprachversion"></a> Deutsch <a href="http://gexso.com/en/"><img src="http://www.gexso.com/de/wp-content/uploads/2014/09/gb.gif" border="0" alt=„English Version"></a> EnglishCode of the Themes header.php (Theme Er-Leaf from everislabs on themeforest)
> > • 3) ); while ($top_post_query -> have_posts()) : $top_post_query -> the_post(); ?> • • • • • • •   'header', 'container' => 'ul', 'container_class' => 'sf-menu menu menu-{menu slug}-container clearfix', 'menu_class' => 'sf-menu menu', 'walker' => new er_leaf_menu_icon_walker() ) ); } ?> 'header', 'container' => 'ul', 'container_class' => 'sf-menu menu menu-{menu slug}-container', 'menu_class' => 'sf-menu menu', 'walker' => new er_leaf_menu_icon_walker() ) ); } ?>A Screenshot how the result should look like:
http://imageshack.com/a/img746/7307/3EsPCB.png
The topic ‘Hardcode in the header.php to display language-switch Flags’ is closed to new replies.