• 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

Moving Navigation Menu In Sample Theme

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 › Moving Navigation Menu In Sample Theme

This topic is: resolved

Tagged: navigation menu, Removing Duplicate Navigation Menu, Sample Theme

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 10 months ago by Miguel.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 19, 2014 at 10:49 am #114929
    Miguel
    Member

    Hello,

    I want to customize the sample theme header section.
    My objective is:
    1. To move the primary navigation menu to the top (before the logo section)
    2. To move the secondary navigation menu just after the logo section

    I've already achieved moving the primary menu to the top using the following php function
    add_action( 'genesis_header', 'genesis_do_nav', 0);
    But it created a duplicate of the primary navigation menu
    It looks like this :
    Primary menu
    Header (logo)
    Primary menu
    Secondary menu

    I want it to look like this:
    Primary menu
    Header (logo)
    Secondary menu

    Thanks a lot for your help!

    Miguel

    July 19, 2014 at 11:38 am #114935
    DTHkelly
    Member

    Using:
    http://genesistutorials.com/visual-hook-guide/
    or adding this plugin to your site
    https://wordpress.org/plugins/genesis-visual-hook-guide/

    will identify the hooks

    Genesis snippets re: moving navigation:
    http://my.studiopress.com/snippets/navigation-menus/

    July 19, 2014 at 11:43 am #114937
    DTHkelly
    Member

    Here's why your add action duplicated the navigation. genesis();

    http://designsbynickthegeek.com/tutorials/genesis-explained-the-framework

    the Genesis function:

    <?php
     
    genesis();

    The Genesis function – genesis(); – automatically includes Genesis wrapper(s) and: header/navigation |content | sidebar(s) | footer

    Which is why Genesis tutorials and snippets have remove action(s)/add action(s) needed to customize the output.

    Also why genesis();is at the bottom of all page templates. Everything above that function modifies its output.

    July 19, 2014 at 2:35 pm #114962
    Miguel
    Member

    Thank you very much Kellylise !

    I'll look into this and make the modifications!

    Have a great weekend,

    Miguel

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Moving Navigation Menu In Sample Theme’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 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