• 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

Reposition secondary navigation menu

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 › Reposition secondary navigation menu

This topic is: not resolved

Tagged: navigation menu

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 1 month ago by lgcuevab.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 19, 2015 at 9:35 am #152757
    lgcuevab
    Member

    Hi
    I want to reposition the secondary navigation menu in the Agency Pro them, because by default it displays in the home bottom widget and I want to position it above the header.

    I just know very basic html code, so I asked support team and they anwered me:
    "The Secondary navigation below the home bottom widget area was repositioned in the themes functions.php file - you can move this to a new location in the theme ( this requires customizing the functions.php file).
    http://my.studiopress.com/snippets/navigation-menus/
    When repositioning elements you may find the Genesis Visual Hook Guide helpful..."

    So according to the Genesis Visual Hood Guide I would like to reposition it on the "genesis_before_header" location.
    But I´m not sure how to modify the functions.php file.
    The actual code in my functions.php file for the secondary navigation menu is the following:

    //* Reposition the secondary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_footer', 'genesis_do_subnav', 7 );

    Should I replace for this one below to display above header?:

    //* Reposition the secondary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_before_header', 'genesis_do_subnav' );

    Thanks.

    Luis

    May 19, 2015 at 10:53 am #152765
    Pixel Frau
    Member

    Spot on, Luis. That should do it.

    Are you already using the Primary Navigation Menu? It is already located in that position, so it might be easier to use that instead.

    May 20, 2015 at 1:07 am #152861
    lgcuevab
    Member

    Thanks, Yes I´m already using the primary menu below the header, but by default the Agency Pro theme has the secondary navigation menu located above the footer, and I wanted it located almost on top, above the header.

    I just did it, but now I got another issue. At the same time, I was customizing my header and increased its height from 60 to 350, So with this, it doesn`t display the primary nor the secondary navigation menus, I think both are behind the header and no visible.
    Do you know how can I fix this?

    Thanks in advance.

    Luis

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 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