• 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 primary nav displaying twice

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 › Design Tips and Tricks › Metro primary nav displaying twice

This topic is: not resolved
  • This topic has 4 replies, 3 voices, and was last updated 11 years, 10 months ago by LauraB.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 2, 2013 at 1:08 pm #53784
    TeeTide
    Member

    I used the following code snippet to move the Metro header and primary nav.

    /** Reposition header outside main wrap */
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ) ;
    
    add_action( 'genesis_before', 'genesis_header_markup_open', 11 );
    add_action( 'genesis_before', 'genesis_do_header', 12 );
    add_action( 'genesis_before', 'genesis_header_markup_close', 13 );
    
    /** Reposition primary navigation outside main wrap*/
    remove_action( 'genesis_after_header', 'genesis_do_nav', 16 );
    add_action( 'genesis_before', 'genesis_do_nav', 17 );
    

    Now the nav is showing twice - once where it originally was and once where I intended it to show:

    The issue can be seen at

    Can one of you gurus tell me what I've done wrong here?

    Thanks in advance.

    August 2, 2013 at 1:15 pm #53785
    RobG
    Member

    Please post the link for the website in question to speed up the process.


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    August 2, 2013 at 4:23 pm #53823
    TeeTide
    Member

    I tried to post it but the link didn't post. Trying again:

    http://dothanalabama.com/metro/

    August 2, 2013 at 5:19 pm #53833
    RobG
    Member

    Try accessing Appearance > Menu- There you can just remove the secondnary or the primary menu. I'm assuming you added the menu right over your content correct? If that the case just remove the top menu.

    It's always a good idea to first see how the menus work this way you will have a better understanding how to apply the changes you need.


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    September 19, 2013 at 1:50 pm #63425
    LauraB
    Member

    TeeTide, I had a similar problem. I was able to resolve it by adjusting the priorities.

    When the add_action for the menu was too close in priority to the remove_action I had the problem. By assigning the add_action a much later priority (for me 20 worked) I was able to get rid of the second menu. See example.

    `//* Reposition the primary navigation menu

    remove_action( 'genesis_after_header', 'genesis_do_nav' );

    add_action( 'genesis_before', 'genesis_do_nav', 20 );'

    Unclear to me why this works, you think if the priority was a just simply a later number it should work. But I offer it in case it helps you.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ 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