• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Metro Custom Menu Above Header

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Metro Custom Menu Above Header

This topic is: resolved

Tagged: custom menu, Metro

  • This topic has 8 replies, 2 voices, and was last updated 12 years, 2 months ago by Stensson.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • September 4, 2013 at 9:15 am #60635
    Venice22
    Member

    Hi,

    I'm using a custom menu in the header right area. How do I move the menu up above the header and sitting on the right?

    I've tried a few things - such as using the secondary menu instead, but that seems to throw up other text into the top left area and still no menu.

    Any ideas??

    Thanks so much:)
    Lisa

    http://www.effortlessglutenfree.com/

    http://www.effortlessglutenfree.com/
    September 4, 2013 at 9:56 am #60647
    Stensson
    Member

    Add to functions.php

    /* Reposition the primary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );

    /Jonas

    September 4, 2013 at 10:33 am #60658
    Venice22
    Member

    Thanks for the code, Jonas.

    When I do that, it doesn't seem to work. Menu is in the standard place.

    http://www.effortlessglutenfree.com/

    Do you know why this would be?
    Cheers,
    Lisa

    September 4, 2013 at 11:11 am #60668
    Stensson
    Member

    It should work. What happens If you unregister primary navigation menu?

    //* Unregister primary navigation menu
    add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) );

    Navigation Menus

    /Jonas

    September 4, 2013 at 11:28 am #60672
    Stensson
    Member

    Copy the code directly from github, it should work.

    Cheers,
    Jonas

    September 4, 2013 at 11:46 am #60679
    Venice22
    Member

    Hi Jonas,
    My mistake - I added in a closed bracket in the first line. One of these "/" - thought it was missing. But when I do as you said and paste it directly it does work. My apologies. And thank you!

    Hey, I don't want to take up too much more of your time, but I wondered - is the black box behind the menu an image? I want to make the text black and remove the thick black background to the menu. Suspect this is simple, but have been hunting for a while and can't seem to find it!

    Anyway,
    thanks so much for your help!
    Cheers,
    Lisa

    September 4, 2013 at 1:15 pm #60699
    Stensson
    Member

    I'm glad I could help.

    Hey, I don’t want to take up too much more of your time, but I wondered – is the black box behind the menu an image? I want to make the text black and remove the thick black background to the menu. Suspect this is simple, but have been hunting for a while and can’t seem to find it!

    It's all about css.

    /*
    04 Menus
    ---------------------------------------------------------------------------------------------------- */

    .genesis-nav-menu {
    overflow: hidden;
    }

    .menu-secondary,
    #header .genesis-nav-menu {
    float: right;
    width: auto;
    }

    #header .genesis-nav-menu {
    float: left;
    margin-top: 15px;
    margin-top: 2rem;
    width: auto;
    }

    .genesis-nav-menu.menu-primary {
    background-color: #fff;
    }

    .genesis-nav-menu ul {
    float: right;
    width: 100%;
    }

    .genesis-nav-menu li {
    display: inline-block;
    float: right;
    list-style-type: none;
    text-align: left;
    }

    .genesis-nav-menu a {
    display: block;
    padding: 16px 20px 14px;
    padding: 1rem 1.25rem 0.875rem;
    position: relative;
    color: #000;
    }

    .genesis-nav-menu.menu-secondary a {
    padding: 12px 16px;
    padding: 0.75rem 1rem;
    }

    .genesis-nav-menu .current-menu-item a,
    .genesis-nav-menu li a:hover,
    .genesis-nav-menu li:hover a {
    background-color: #f96e5b;
    }

    .genesis-nav-menu li li a,
    .genesis-nav-menu li li a:link,
    .genesis-nav-menu li li a:visited {
    background-color: #333;
    padding: 16px 20px 14px;
    padding: 1rem 1.25rem 0.875rem;
    position: relative;
    width: 120px;
    }

    .genesis-nav-menu.menu-secondary li li a,
    .genesis-nav-menu.menu-secondary li li a:link,
    .genesis-nav-menu.menu-secondary li li a:visited {
    padding: 12px 16px;
    padding: 0.75rem 1rem;
    width: 140px;
    }

    .genesis-nav-menu li li a:hover {
    background-color: #f96e5b;
    }

    .genesis-nav-menu li ul {
    left: -9999px;
    position: absolute;
    width: 160px;
    z-index: 99;
    }

    .genesis-nav-menu.menu-secondary li ul {
    width: 132px;
    }

    .genesis-nav-menu li ul ul {
    margin: -42px 0 0 159px;
    }

    .genesis-nav-menu.menu-secondary li ul ul {
    margin: -36px 0 0 171px;
    }

    .genesis-nav-menu li:hover ul ul,
    .genesis-nav-menu li.sfHover ul ul {
    left: -9999px;
    }

    .genesis-nav-menu li:hover,
    .genesis-nav-menu li.sfHover {
    position: static;
    }

    ul.genesis-nav-menu li:hover>ul,
    ul.genesis-nav-menu li.sfHover ul,
    #header .genesis-nav-menu li:hover>ul,
    #header .genesis-nav-menu li.sfHover ul {
    left: auto;
    }

    .genesis-nav-menu li a .sf-sub-indicator,
    .genesis-nav-menu li li a .sf-sub-indicator,
    .genesis-nav-menu li li li a .sf-sub-indicator {
    position: absolute;
    text-indent: -9999px;
    }

    #wpadminbar li:hover ul ul {
    left: 0;
    }

    Cheers,
    Jonas

    September 4, 2013 at 2:41 pm #60711
    Venice22
    Member

    Thanks Jonas,
    Have a great day:)

    September 4, 2013 at 2:59 pm #60714
    Stensson
    Member

    You're welcome Lisa!

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble