- This topic has 7 replies, 2 voices, and was last updated 4 years, 9 months ago by
Leo.
-
AuthorPosts
-
September 8, 2021 at 8:09 am #1923142
Paul
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. PublishYou 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)
September 8, 2021 at 9:25 am #1923229Leo
StaffCustomer SupportHi 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?
September 8, 2021 at 10:39 am #1923284Paul
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.
September 8, 2021 at 10:41 am #1923286Leo
StaffCustomer SupportI’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?
September 8, 2021 at 10:43 am #1923288Paul
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.
September 8, 2021 at 10:47 am #1923292Leo
StaffCustomer SupportAhh that specific hook doesn’t exist in static pages:
https://docs.generatepress.com/article/hooks-visual-guide/#static-pageTry
generate_before_contenthook instead.September 8, 2021 at 10:51 am #1923294Paul
That did it!
Thank you so much Leo 🙂
September 8, 2021 at 10:55 am #1923296Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.