Archived topic
A hook below the main navigation menu in Classic theme
9 replies · Started by Vanessa on March 26, 2019
Hey there,
I'm trying to add content to a hook just after the main menu for blog posts to show a breadcrumb.
I can add the breadcrumb after the title (above the nav menu) or above the post title - as shown in the example currently on the site, but it is outside of the nav menu container.
How do I add content after the nav menu but still in the nav menu container?
Hi there,
I believe the before_main_content or inside_container should work:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
Let me know if this helps :)
No those don't work, they are even further down the page. I was hoping within the nav bar container (where it says home / blog / contact).
Where would it go? Like on the right of LinkedIn icon?
Just undernearth
So still in the gray container, underneath
Hi there,
if you use the after_header hook. It will display below the navigation.
To keep it contained add your code inside a div wrap with the following class:
<div class="grid-container">
<!-- breadcrumb code goes here -->
</div>
Hello!
I have the same issue, i want to add a hook with some script before Main Menu img -> https://imgur.com/32A3lgs
I've tried the hooks below but nothing helps. Can you help me? Thanks!
Hi there,
try the inside_container hook
Hey David,
I've tried inside_container hook too, doesn't work. :(
Any chance you can open a new topic and link us to the page in question?
Thanks :)