Site logo

Blog

Stay up to date with what's going on at GeneratePress.

Archived topic

Disabled primary navigation but element don't show with hook after_navigation

3 replies · Started by Erwin on December 21, 2022

Viewing posts 1–4 of 4

Hi,

I have disabled my main menu on a landing page. Instead I want to show a block element. The most logical hook seemed to me to be after_navigation. But when I choose that hook, nothing is displayed.

In the included example I used the after_header_content hook. But it will not be right aligned. I also aligned the container in this block to the right.

Which hook should I use to right-align the block element?

Regards,
Erwin

Hi there,

just a quick note on the after_navigation hook. That hook is inside the primary navigation function, so when you remove the primary nav you remove any of its hooks too.

Add this CSS to your site to make force the block element to the right:

.inside-header.grid-container {
    justify-content: space-between;
}

Thank you David!

You're welcome

This archived topic is closed to new replies.