Title: Hardcode in the header.php to display language-switch Flags
Last modified: August 22, 2016

---

# Hardcode in the header.php to display language-switch Flags

 *  [NicolasBen](https://wordpress.org/support/users/nicolasben/)
 * (@nicolasben)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/hardcode-in-the-headerphp-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> English`
 * Code 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](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.

## Tags

 * [header.php](https://wordpress.org/support/topic-tag/header-php/)
 * [language switch](https://wordpress.org/support/topic-tag/language-switch/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 0 replies
 * 1 participant
 * Last reply from: [NicolasBen](https://wordpress.org/support/users/nicolasben/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/hardcode-in-the-headerphp-to-display-language-switch-flags/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
