[Resolved] Before Header vs NavMenu

Home Forums Support [Resolved] Before Header vs NavMenu

Home Forums Support Before Header vs NavMenu

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #128534
    Adrian Cojocariu

    Any way I can show the navmenu above the header, but under the before header hook ?

    Doesn’t necessary have to be a hook, but I want to place a bar with phone and email that always stays there at the top.

    I want the navmenu above the header, and that bar above the navmenu πŸ˜€

    #128539
    Tom
    Lead Developer
    Lead Developer

    Hi Adrian,

    Try this:

    add_action( 'after_setup_theme','generate_move_before_header_nav' );
    function generate_move_before_header_nav()
    {
          remove_action( 'generate_before_header', 'generate_add_navigation_before_header', 5 );
          add_action( 'generate_before_header', 'generate_add_navigation_before_header', 15 );
    }
    #128547
    Adrian Cojocariu

    No effect man, nav menu still above it.

    I added it in functions.php and tried adding it as a separate PHP code in GP hook.

    #128550
    Adrian Cojocariu

    I’m using exhibit child theme if that helps ? Should I modify the generatepress theme functions.php ?

    #128553
    Tom
    Lead Developer
    Lead Developer

    Hmm, no – I would create a plugin for your functions in that case (https://generatepress.com/knowledgebase/adding-php-functions/ – #2).

    Is it the primary menu you’re trying to move, or the secondary menu?

    #128854
    Adrian Cojocariu

    Ok so in Personalize, the navigation position is above header, and I created a new plugin for the code but the Before Header GP Hook is still under the navmenu πŸ™

    #128864
    Tom
    Lead Developer
    Lead Developer

    Are you working with the main navigation or the secondary navigation?

    If it’s the main navigation, the code above should definitely work.

    Let me know πŸ™‚

    #128880
    Adrian Cojocariu

    It’s the main nav, forgot to say.

    At first no nav was selected, but then I created a menu in WP and set it as Main Navigation through GP personalize πŸ™

    #128947
    Tom
    Lead Developer
    Lead Developer

    Hmm, any chance you can shoot me temporary admin login details to support@generatepress.com?

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.