Archived topic
Breadcrumbs Above Entry Title Not Showing
7 replies · Started by Paul on September 8, 2021
Hi,
I am trying to add breadcrumbs to the above the title of the entire site excluding the homepage. I have followed the steps in the generatepress video https://www.youtube.com/watch?v=GkJq5fMwDxs but still not seeing them appear.
I've added the element as per video instructions. I also have breadcrumbs enabled on rankmath. I tried debugging with deactivating plugins and clearing the cache but no luck.
I followed the steps:
1. Add new element
2. Choose block element type
3. Add [rank_math_breadcrumb] to a short code
4. Set hook name to before entry title
5. Set where to include and exclude breadcrumbs
6. Publish
You can see my settings in screenshot > https://paste.pics/DT2HO
Can you assist me please. For reference, the site is new. It's racepulse.co/f1 (as an example of where id like breadcrumbs to appear above title)
Hi there,
Can you clear and disable any caching plugins you are using first?
Does the breadcrumb work on single posts?
What if you add the shortcode directly in the content? Does it work?
Hi Leo,
Thanks for the response.
I tried adding a new post just now (since it's a new site, there were no posts, just pages.) it works on the posts but still nothing on the pages.
It looks fine on posts and category pages now>> https://www.racepulse.co/this-is-a-test but still cant get it to show on pages example https://www.racepulse.co/f1
I tried deactivating the caching plugin but no luck with the pages breadcrumbs still. For reference, here's my settings of the element: https://paste.pics/DT4VG
I have it set to the entire site with exclusion of the homepage.
I tested just adding the shortcode within the body of the page itself and it worked fine too.
I'm guessing that the breadcrumb only works on posts and not pages.
What if you add the breadcrumb directly into the content of a page?
Hi,
Yes, you're correct. It's currently only working on posts but not pages. And when i paste the shortcode into the body of page, it works fine.
Ahh that specific hook doesn't exist in static pages:
https://docs.generatepress.com/article/hooks-visual-guide/#static-page
Try generate_before_content hook instead.
That did it!
Thank you so much Leo :)
No problem :)