Site logo

Archived topic

Add menu on hook

9 replies · Started by Alfonso on November 5, 2021

Viewing posts 1–10 of 10

Hi there, i need to add a new menu into a this hook: generate_after_logo

How i can do it?

Hi there,

what type of menu item are you wanting to add ? Is it just a link ?

is a menu item with dropdown subitems

Is there going to be another navigation to the right?
If so it may be simpler to just use some CSS to push one of the primary nav menu items to site beside the logo.

Hi there,

I would recommend activate secondary navigation, add the account icon and the language menu items both to a new menu, then assign it to the secondary navigation.

Set secondary navigation location to float right.

You should not need using hooks in this way.

Let me know if you need further assistance :)

Hi Ying,

I've activated the secondary navigation but i can set on the right of logo

1. Can you go to customizer > layout > header, set Header Alignment to Left?

2. Set secondary navigation location to float right.

3. Add this CSS to center the logo:

#masthead .site-logo {
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Let me know if this helps :)

Thanks!

You are welcome :)

This archived topic is closed to new replies.