Archived topic
Banner below hero image and above breadcrumbs
7 replies · Started by Alan on May 16, 2022
I created a hook so that I can place an alert below the hero image using the generate_after_header hook, but the breadcrumbs are between the hero image and alert. Is there a way for a non-programmer to move the Yoast breadcrumbs below the alert and have it flush with the hero image (no space) on certain pages. The alert is not applicable to all pages.
Please let me know.
Thanks,
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
This was a private page that I use for testing, but I published it for your review.
Hi Alan,
How did you add the breadcrumbs? Are you using a hook elementgenerate_after_header as well?
If so, try set the element's priority to 12.
Go to the element contains the banner, set its priority to 11.
The smaller the priority value is, the higher it will appear in front end.
I am doing it through search appearance in Yoast.
I see, then can you edit the element contains the banner, set its priority to 11 to test?
Very, very interesting...I changed the priority anywhere from 1-11 and when I set it to 9, it worked as intended. Is this something that will stay flush with the header or is it subject to change? I was shooting for something like the attached (they don't use breadcrumbs).
By the way, thanks for your help.
Sometimes we need to play around with value, it depends on what priority the breadcrumb using!
So 9 it is :)