• 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 Secondary nav bar below 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 › Design Tips and Tricks › Moving Secondary nav bar below header

This topic is: not resolved

Tagged: altitude, header, navbar, navigation

  • This topic has 3 replies, 3 voices, and was last updated 6 years, 3 months ago by cway.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 7, 2015 at 8:23 am #164831
    Jack
    Participant

    I'm using the Altitude theme and love it. Great design, at
    http://peachtreeallergyclinic.com/test/

    I've added the code

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

    with no luck.

    any ideas?


    Jack Kennard
    http://jackkennard.com

    http://peachtreeallergyclinic.com/test/
    September 7, 2015 at 3:03 pm #164855
    Victor Font
    Moderator

    The Altitude Pro functions.php file has this code at line 59:

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

    All you have to do is comment out this code and the secondary nav will default to the after header area.

    If you still want to use your code, make sure it comes after the above. I've rewritten your code:

    //* Reposition the secondary navigation menu
    remove_action( ‘genesis_header’, ‘genesis_do_subnav’ );
    add_action( ‘genesis_after_header’, ‘genesis_do_subnav’);

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 27, 2015 at 8:41 pm #166813
    Jack
    Participant

    Victor Thanks for your help,

    For some reason I am having trouble moving the secondary navbar below the title.
    http://peachtreeallergyclinic.com/test2/
    I've made all your changes and it does not want to move.

    Thanks again


    Jack Kennard
    http://jackkennard.com

    January 29, 2016 at 5:16 pm #177868
    cway
    Member

    Commenting-out line 59 didn't do anything for me, either.

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