Site logo

Archived topic

Menu placement

5 replies · Started by Nina on October 8, 2017

Viewing posts 1–6 of 6

I have set up page headers and can't get my menu to sit under the headers, can anyone help please?
Link below to site
http://esam.org.uk/home

Hi there,

Are you wanting that page header on every page or just that page?

potentially 2 or 3 different headings throughout the site

Then we need to move the navigation below page header using this snippet:

add_action('after_setup_theme','generate_change_nav_position');
function generate_change_nav_position()
{
      remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
      add_action( 'generate_after_header', 'generate_add_navigation_after_header', 29 );
}

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

worked a treat - thanks you x

No problem!

This archived topic is closed to new replies.