Site logo

Archived topic

Menu under header

5 replies · Started by Fernando on September 30, 2016

Viewing posts 1–6 of 6

Hi, in my site https://ezra.mx you can see a orange row under the header video, I want it to be a menu, at this moment is placed with a hook but I need it to be a secondary menu, how can I do it? thanks

Hi there,

On every single page or just that one?

It looks like you're using widgets, so you could just add the "Custom Menu" widget there, and style it using CSS which it looks like you're comfortable with?

That orange row (the fake menu) was created using a drag and drop editor, not widgets.

But yes, I want it to be a menu for all pages in the website

Thanks.

The page builder you're using uses widgets.

You can use the Secondary Navigation add-on, you'd just need to change the position of it using PHP.

For example, set the Secondary Navigation to display after the header, then add this:

add_action( 'after_setup_theme','generate_secondary_nav_below_page_header' );
function generate_secondary_nav_below_page_header()
{
    remove_action( 'generate_after_header', 'generate_add_secondary_navigation_after_header', 7 );
    add_action( 'generate_after_header', 'generate_add_secondary_navigation_after_header', 15 );
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

Hi Tom

Thanks for your help, it works very well

Thanks for your help

You're welcome :)

This archived topic is closed to new replies.