Site logo

Archived topic

Cannot get breadcrumbs to show in GP Premium Theme

21 replies · Started by Deirdre on October 11, 2020

Viewing posts 1–15 of 22

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/

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.

Hi there,

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

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/

Where do you want it positioned ?

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?

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.

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

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.

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

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

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

This archived topic is closed to new replies.