[Resolved] Cannot get breadcrumbs to show in GP Premium Theme

Home Forums Support [Resolved] Cannot get breadcrumbs to show in GP Premium Theme

Home Forums Support Cannot get breadcrumbs to show in GP Premium Theme

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #1483113
    Deirdre

    Hello,

    I have had breadcrumbs on and off on my website as I hadn’t gotten around to creating a child theme and the breadcrumbs kept getting wiped as the only way it worked to implement them was by enabling them in Yoast and adding them directly to my posts.php file.

    I just created a child theme after breadcrumbs had disappeared again and I have tried pretty much everything available in the forum and cannot get breadcrumbs to display at all via hooks? E.g. I have followed all the instructions on this page: https://docs.generatepress.com/article/adding-breadcrumbs/

    #1483415
    Leo
    Staff
    Customer Support

    Hi there,

    Have you tried the hooks element method?
    https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-element

    That does not require a child theme.

    #1488315
    Deirdre

    As I said in the above comment, I already tried both ways to get breadcrumbs on the adding-breadcrumbs page (hook and function), and neither work.

    #1488349
    David
    Staff
    Customer Support

    Hi there,

    can you use the method Leo provided and then provide a link to a post where the breadcrumbs should appear.

    #1488488
    Deirdre

    Hi yes I had that method implemented before and it wasn’t working, now I’ve tried it with the shortcode [wpseo_breadcrumb] and it appears but it appears in a weird place at the top of the text but below the photo and jump to recipe buttons. Is there no way to have it automatically appear? e.g. on this page https://www.thefieryvegetarian.com/peri-peri-sauce-recipe/

    #1488506
    David
    Staff
    Customer Support

    Where do you want it positioned ?

    #1488529
    Deirdre

    Above my title would be great but is there no way for the breadcrumbs to show up automatically on posts without manually inserting a shortcode?

    #1488792
    David
    Staff
    Customer Support

    It should work by adding it to a Hook Element.
    You can add the Shortcode to the hook text area.
    Select the before_content hook
    Visual guide of hooks here

    Check Execute Shortcodes.
    And set your Display Rules to where you require them eg. Posts > All posts.

    #1491667
    Deirdre

    Hi sorry that still does not work. The breadcrumbs still show up below the jump to recipe button instead of above the title, and they do not appear on pages unless I actually manually add the shortcode.

    https://www.thefieryvegetarian.com/peri-peri-sauce-recipe/

    #1491694
    David
    Staff
    Customer Support

    Well thats odd – try the before_entry_title hook and let me know.

    #1491722
    Deirdre

    Hi I’ve tried the before_entry_title hook as well and no go. I played around with it and the long and short of it is that the breadcrumbs will only appear in a post if I manually insert [wpseo_breadcrumb] (which I can’t insert above the title from the wordpress post edit page, otherwise that would be okay). Without manually inserting the shortcode they don’t appear at all.

    #1491730
    David
    Staff
    Customer Support

    Can you provide a screen shot of your Hook Element – the content and the display rules tab?

    #1491910
    Deirdre

    Sure, but what should we use to share screenshots, it looks like I can only include img urls?

    #1491933
    David
    Staff
    Customer Support

    You will have to save the images to a share drive, or your WP Media Library and share the URLs. Alternatively use an image sharing site like imgur

    #1491947
    Deirdre
Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.