- This topic has 9 replies, 2 voices, and was last updated 3 years, 11 months ago by
Leo.
-
AuthorPosts
-
April 18, 2019 at 12:04 pm #872889
Stephen Moon
Used the support documentation to set up Yoast breadcrumbs on my site and it works well.
The breadcrumbs are shown in a wide box at the head of the page, with a white background. Is it possible to change the white background? And maybe alter the width of the display box?
Many thanks
FrithGP Premium 1.7.8April 18, 2019 at 1:23 pm #872947Leo
StaffCustomer SupportHi there,
The link to your site isn’t loading for me.
Can you double check?
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 18, 2019 at 9:52 pm #873155Stephen Moon
It seems ok now, it was running slowly last night after I made some changes but it seems fine – http://www.frithstreetpost.com
Thanks LeoApril 19, 2019 at 9:47 am #873661Leo
StaffCustomer SupportSorry how are you adding the breadcrumbs?
Using Hooks Elements as suggested here?
https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-elementIs the current position where you actually want it?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 19, 2019 at 10:41 am #873698Stephen Moon
Yes, I used Hooks in Elements as I’m on Premium. I used code as advised and provided by Yoast.
It’s in an ok place, would like to make the container smaller though.
Nice theme by the way.
April 19, 2019 at 11:24 am #873720Leo
StaffCustomer SupportHmm that’s weird.
Which hook are you adding to? There shouldn’t be padding by default.
Can you clear and disable WP Rocket for now?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 19, 2019 at 2:38 pm #873817Stephen Moon
I enabled Breadcrumbs in Yoast
I then went to Elements and added a Hook wp_head
CSS from Yoast is:<?php if ( function_exists(‘yoast_breadcrumb’) ) { ?>
<?php yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); ?><?php } ?>
To your note above I have now cleared and disabled WP Rocket for now.
Thank you
April 19, 2019 at 2:41 pm #873818Leo
StaffCustomer SupportBut that’s not what the instructions here are suggesting:
https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-elementCan you try exactly those steps?
For #3, you can choose any hooks that are listed here:
https://docs.generatepress.com/article/hooks-visual-guide/#single-postwp_head
is not the right place.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 19, 2019 at 3:03 pm #873824Stephen Moon
Apologies. Using the link you gave me got me almost there.
It then started showing in the right place, but just fragments of code.
I changed Execute Shortcodes as directed to Execute PHP and that did the trick.
Thanks for your help, invaluable for a rookie like me!
April 19, 2019 at 4:56 pm #873862Leo
StaffCustomer SupportGlad I could help 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.