- This topic has 20 replies, 4 voices, and was last updated 1 year, 11 months ago by
David.
-
AuthorPosts
-
May 2, 2019 at 7:45 am #886734
Louie
My web site is static pages with no blog posts. In this article – https://docs.generatepress.com/article/adding-breadcrumbs/ it says to use the Post as a location. In my use case should I use Post or another such as Site, etc.?
Thank you.May 2, 2019 at 8:00 am #886753Leo
StaffCustomer SupportHi there,
Yup – you can add Page to the display rules as well.
Or try Entire Site if you want it on every page.
Let me know if this helps π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 2, 2019 at 8:43 am #886810Louie
Thanks, Leo. Would entire site be better for SEO?
May 2, 2019 at 11:06 am #886938Tom
Lead DeveloperLead DeveloperI think it depends on your site more than anything. It might not make sense to have breadcrumbs everywhere (404 page? etc..)
It’s worth trying though – see how it works on your site. You might end up excluding some areas.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMay 2, 2019 at 3:16 pm #887172Louie
Thank you for the help.
May 2, 2019 at 3:36 pm #887185Tom
Lead DeveloperLead DeveloperNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMay 3, 2019 at 7:59 am #888017Louie
May be a slight problem – After enabling, I only get the Home hyperlink to show up. Not the trail of breadcrumbs. Is there a way I can send a screenshot?
May 3, 2019 at 10:11 am #888158David
StaffCustomer SupportHi there,
The page is there, its just not visible as its the same color as the background. So edit your hook element and change the hook to
before_content
. This will move it into the content area with the white background.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 3, 2019 at 1:29 pm #888306Louie
Now it shows in the content area but says: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/
May 3, 2019 at 3:05 pm #888367Tom
Lead DeveloperLead DeveloperWhat’s the exact code you’re adding?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMay 4, 2019 at 5:47 am #888729May 4, 2019 at 7:56 am #888957Tom
Lead DeveloperLead DeveloperSo you’re using this code in the Element?:
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); } ?>
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMay 4, 2019 at 10:15 am #889054Louie
No. I was using https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/ that I found here: https://docs.generatepress.com/article/adding-breadcrumbs/
Should I use: <?php
if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
}
?>May 4, 2019 at 10:19 am #889055Louie
I’m guessing yes. π I gave it a try. Now I just get the code on the pages.
<?php
if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
}
?>May 4, 2019 at 10:33 am #889065Louie
I also did this – NOTE: Depending on your theme you may or may not need to add in the beginning <php and ending ?> php tags. If you are not sure, your theme developer can help.
No luck.
-
AuthorPosts
- You must be logged in to reply to this topic.