- This topic has 7 replies, 2 voices, and was last updated 4 years, 11 months ago by
Leo.
-
AuthorPosts
-
May 23, 2019 at 4:08 pm #909214
Mehmet Akif Kaban
Hello,
I want to display category hierarchy like below in the page header in a separate line.
Help appreciated. Thanks
Category 1 >>> Category 2 >> Category 3
May 23, 2019 at 6:25 pm #909272Leo
StaffCustomer SupportHi there,
GP doesn’t have built-in breadcrumb feature.
I’ll recommend checking out a plugin like YoastSEO.
Let me know 🙂
May 24, 2019 at 12:22 pm #910002Mehmet Akif Kaban
Thanks, But is there a way to do that without Yoast? I just need to display hierarchy, nothing else.
Category 1 >>> Category 2 >> Category 3If the answer is no can u help me adding that to Page Header element
ThanksMay 24, 2019 at 12:24 pm #910003Leo
StaffCustomer SupportSorry you just want to display the categories?
If so try the template tags:
https://docs.generatepress.com/article/header-element-template-tags/#post_terms-taxonomyMay 25, 2019 at 11:49 am #910709Mehmet Akif Kaban
Thanks Leo
I just enabled breadcrumbs from Yoast Seo.
I have found this hook, But how to appy it to global page header? I cant find the option for this.
<?php if ( function_exists(‘yoast_breadcrumb’) ) { ?>
<?php yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); ?><?php } ?>
May 25, 2019 at 12:03 pm #910712Leo
StaffCustomer SupportIf you only want to display categories, then I don’t think you actually need YoastSEO.
Try the template tag solution suggested here:
https://generatepress.com/forums/topic/displaying-category-hierarchy-like-breadcrumbs-in-page-header/#post-910003If you want to install Yoast still, take a look at this:
https://docs.generatepress.com/article/adding-breadcrumbs/July 10, 2021 at 3:43 pm #1851271Kelsey
Hello,
I’m trying to do this as well. I’m using RankMath SEO. I enabled breadcrumbs in the RankMath SEO settings. Next, I created a hook in GP Premium elements. I’m getting the breadcrumbs to show up but they’re not looking how I want them to look. I just want the categories to show up as breadcrumbs.
This isn’t my page, but I’d like them to look like this:
https://www.simplyrecipes.com/recipes/green_bean_salad_with_basil_balsamic_and_parmesan/
This is my page, and this is how my breadcrumbs are showing up:
https://thegoldenlamb.com/banana-bread-recipe-without-butter/
In the RankMath settings, I made sure to select “show category” but it’s not drilling down to my categories.
I want my breadcrumbs to look like this:
Recipes >> Desserts
July 10, 2021 at 3:47 pm #1851278Leo
StaffCustomer SupportHi Kelsey,
The theme itself has no control over the breadcrumbs features from RankMath.
If you have issues with the options not working, please check with their support team.
Thanks!
-
AuthorPosts
- The topic ‘Displaying category hierarchy like breadcrumbs in page header’ is closed to new replies.