Site logo

[Resolved] Breadcrumbs Above Entry Title Not Showing

Home Forums Support [Resolved] Breadcrumbs Above Entry Title Not Showing

Home Forums Support Breadcrumbs Above Entry Title Not Showing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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. 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)

    #1923229
    Leo
    Staff
    Customer Support

    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?

    #1923284
    Paul

    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.

    #1923286
    Leo
    Staff
    Customer Support

    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?

    #1923288
    Paul

    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.

    #1923292
    Leo
    Staff
    Customer Support

    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.

    #1923294
    Paul

    That did it!

    Thank you so much Leo 🙂

    #1923296
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.