Title: Header menu
Last modified: August 20, 2016

---

# Header menu

 *  [akasin](https://wordpress.org/support/users/akasin/)
 * (@akasin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/header-menu-6/)
 * Hi,
 * This is my header.php file. I want to put my main menu at the very top so that
   it is outside the container and can extend full width of the page. Could someone
   recommend where I can move it to in the file? It starts at <nav id=”omc-main-
   navigation”>
 * <?php
    // Get theme options $theme_options = get_option(‘option_tree’); $omc_logo_image
   = get_option_tree(‘omc_logo_image’, $theme_options, false); $omc_favicon = get_option_tree(‘
   omc_favicon’, $theme_options, false); $omc_header_font = get_option_tree(‘omc_header_font’,
   $theme_options, false); $omc_paragraph_font = get_option_tree(‘omc_paragraph_font’,
   $theme_options, false); ?>
 * <!doctype html >
    <!–[if lt IE 7]> <html class=”no-js ie6 oldie” lang=”en”> <![
   endif]–> <!–[if IE 7]> <html class=”no-js ie7 oldie” lang=”en”> <![endif]–> <!–[
   if IE 8]> <html class=”no-js ie8 oldie” lang=”en”> <![endif]–> <!–[if gt IE 8]
   ><!–> <html class=”no-js” <?php language_attributes(); ?>> <!–<![endif]–>
 * <head>
 *  <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″/>
 *  <title><?php bloginfo(‘name’) ;?> | <?php bloginfo(‘description’);?></title>
 *  <?php if ($omc_favicon !== NULL) { ?><link href=”<?php echo $omc_favicon; ?>”
   rel=”shortcut icon”/><?php } ?>
 *  <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-
   scale=1″>
 *  <?php wp_head(); ?>
 *  <!–[if IE 8]><link rel=”stylesheet” type=”text/css” media=”all” href=”<?php 
   echo get_template_directory_uri();?>/css/ie8.css” /><![endif]–>
 *  <!–[if IE 7]><link rel=”stylesheet” type=”text/css” media=”all” href=”<?php 
   echo get_template_directory_uri();?>/css/ie7.css” /><![endif]–>
 *  <link href=’[http://fonts.googleapis.com/css?family=&lt](http://fonts.googleapis.com/css?family=&lt);?
   php $omc_header_font = str_replace(” “, “+”, $omc_header_font); echo $omc_header_font;?
   >:400italic,700italic,400,700′ rel=’stylesheet’ type=’text/css’>
 *  <?php if ($omc_paragraph_font !== NULL) { $omc_paragraph_font = str_replace(”“,“
   +”, $omc_paragraph_font); echo(“<link href=’[http://fonts.googleapis.com/css?family=&#8221](http://fonts.googleapis.com/css?family=&#8221);.
   $omc_paragraph_font.”:400italic,700italic,400,700′ rel=’stylesheet’ type=’text/
   css’>”); }?>
 *  <noscript>
    <style> .es-carousel ul{display:block;} </style> </noscript>
 *  <?php get_template_part(‘header-options’);?>
 * </head>
 * <body <?php body_class(); ?> >
 *  <div id=”fb-root”>
    </div> <script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(
   s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id;
   js.src = “//connect.facebook.net/en_US/all.js#xfbml=1”; fjs.parentNode.insertBefore(
   js, fjs); }(document, ‘script’, ‘facebook-jssdk’));</script>
 *  <div id=”omc-transparent-layer”>
 *  <!– <div class=”preloaders” style=””></div> –>
 *  <div id=”omc-container”>
 *  <header>
 *  <nav id=”omc-main-navigation”>
 *  <?php if ( has_nav_menu( ‘primary’ ) ) { ?>
 *  <?php wp_nav_menu( array(‘container_class’ => ‘omc-over-480’, ‘fallback_cb’ 
   => ‘none’, ‘theme_location’ => ‘primary’, ‘walker’ => new Description_Walker));?
   >
 *  <?php } else { wp_nav_menu(); } ?>
 *  <br class=”clear” />
 *  <?php wp_nav_menu( array(‘container_class’ => ‘omc-under-480’, ‘theme_location’
   => ‘mobile’, ‘fallback_cb’ => ‘none’, ‘items_wrap’ => ‘%3$s’));?>
 *  <div id=”omc-header-search-mobi”>
 *  <form method=”get” id=”mobi-search” class=”omc-mobi-search-form” action=”<?php
   echo home_url(); ?>/”>
 *  <input type=”text” class=”omc-header-mobi-search-input-box” value=”” name=”s”
   id=”mobi-mobi-search”>
 *  <input type=”submit” class=”omc-header-mobi-search-button” id=”seadssdrchsubmit”
   value=””>
 *  </form>
 *  </div>
    ** </nav>
 *  <br class=”clear” />
 *  </header>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/header-menu-6/#post-3276489)
 * Hi akasin, you actually need to create a child theme and edit the style.css file
   please read [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 * Also post code in code backticks when posting on the forum.
 *  Thread Starter [akasin](https://wordpress.org/support/users/akasin/)
 * (@akasin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/header-menu-6/#post-3276504)
 * I have a custom CSS box in admin area, would that do instead of having to create
   a child theme?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Header menu’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [akasin](https://wordpress.org/support/users/akasin/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/header-menu-6/#post-3276504)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
