Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Support request] Navigations and Header order

Home Forums Support Navigations and Header order

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #466382
    GBE brokers Ltd

    I would like to put The secondary navigation at the top of the page the primary navigation under the secondary navigation and the header under the primary navigation.I put the primary navigation and secondary navigation Navigation Location = Above Header but the primary navigation goes at the top and secondary under the Primary navigation. How to change the order as described above? Thank in advanced.

    GeneratePress 2.0.1
    GP Premium 1.5.6
    #466594
    Leo
    Staff
    Customer Support

    Hi there,

    Try this snippet:

    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 );
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

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