Site logo

Archived topic

How to move secondary menu below the heading image(GP container)?

3 replies · Started by Stephen on December 10, 2020

Viewing posts 1–4 of 4

Our client wants the secondary menu to show up under the hero header of all pages.
I was thinking about using element to fix this issue, but after tried some options, the secondary menu still does like to moving down. Anyone can help me with it?
For your reference, I created the hero header image using CP container other than feature image.
See video link for more understanding. https://www.awesomescreenshot.com/video/2037177?key=2813faa8ff2293a45134fde66a708780

Thank you,

Chris

Hi,

Consider doing it this way:

As for Header/Hero Image section, consider using GP Premium's Header Element.
https://docs.generatepress.com/article/header-element-overview/

If your header has a slide from a plugin, you should still be able to run it within the Header element using its shortcode.

Once you've set a proper hero header, we can now begin inserting a secondary menu by creating it with Block Element.
https://docs.generatepress.com/article/block-element-overview/

Block element lets you create a layout which you can hook in on generate_after_header with priority set to 20 so it goes in after the Header/Hero section.

Hi Elvin, you are talented, it worked for me.
Appreciated it.

Chris

Hi Elvin, you are talented, it worked for me.
Appreciated it.

Thanks! Glad it works for you. No problem. :D

This archived topic is closed to new replies.