- This topic has 11 replies, 3 voices, and was last updated 6 years, 3 months ago by
David.
-
AuthorPosts
-
December 12, 2019 at 10:38 am #1102431
sipahi
Hello,
As you will see in the link I provided (only admins can see), I am using excerpt under title (I’m telling this just to let you know)
I added yoast breadcrumb following this tutorial https://docs.generatepress.com/article/adding-breadcrumbs/
I also searched the forum and tried to style breadcrumb using .breadcrumbs
It has no effect as you will see (!important also have no effect).
what am I missing?
This is what I’m using to try if .breadcrumbs work.
.breadcrumbs { background-color: #e6e6e6!important; }Thanks in advance
December 12, 2019 at 10:56 am #1102449David
StaffCustomer SupportHi there,
The Yoast Shortcode no longer outputs any classes.
Can you try wrapping the shortcode in a<div>like so:<div class="breadcrumbs">Place shortcode here</div>Then you can style the
.breadcrumbsclassDecember 12, 2019 at 11:14 am #1102468sipahi
You’re the best!
December 12, 2019 at 11:16 am #1102476David
StaffCustomer SupportGlad to be of help
January 2, 2020 at 6:02 am #1119741Marius
Where should the DIV be placed? At the moment i have this code in a elemnt:
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); } ?>January 2, 2020 at 7:48 am #1119974David
StaffCustomer SupportHi there,
we updated the Doc to include the
<div>:https://docs.generatepress.com/article/adding-breadcrumbs/#using-functions
January 2, 2020 at 8:33 am #1120009Marius
So I have this, like your docu says:
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '<div class="grid-container grid-parent"><p id="breadcrumbs">','</p></div>' ); } ?>but cannot style bradcrumbs via this. Nothing happens:
/* breadcrumb */ .breadcrumbs { font-size: 8px; }January 2, 2020 at 8:51 am #1120035David
StaffCustomer SupportYou’re CSS would need to be this:
/* breadcrumb */ #breadcrumbs { font-size: 8px; }January 2, 2020 at 8:57 am #1120046Marius
Thank you very much. I was proud to know some css, but this was apparently not the case.
January 2, 2020 at 9:07 am #1120052David
StaffCustomer SupportYou’re welcome
The only mistake was we needed to select the element using its ID.
And IDs start with a#instead of a.🙂
January 2, 2020 at 9:16 am #1120058Marius
🙂 Thanks for explaining this!
January 2, 2020 at 9:25 am #1120069David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.