[Support request] Can't move elements page header above navigation

Home Forums Support Can't move elements page header above navigation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1031500
    Greg

    I can’t seem to move the Elements page header above the primary navigation. I’ve disabled the top bar and header on the website page itself (from within the WP editor for the page) and I’ve set the Elements page header navigation location to “Below Header” but still no joy. From what I understand the Elements page header settings should override anything in the customizer but I can’t get it to work.

    #1031524
    Leo
    Staff
    Customer Support

    Hi there,

    This PHP snippet should move the header element above primary navigation:

    add_action( 'after_setup_theme','craig_move_navigation' );
    function craig_move_navigation() {
        remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
        add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 );
    }

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

    Let me know if this helps 🙂

    #1031548
    Greg

    Thanks Leo. That worked a treat but I’ve noticed that for the mobile view the header flips down below the mobile menu.

    #1031563
    Leo
    Staff
    Customer Support

    Can you link me to the page in question?

    Let me know 🙂

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