Home › Forums › Support › Breadcrumb styling issue This topic has 11 replies, 3 voices, and was last updated 4 years, 3 months ago by David. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts 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 #1102449 DavidStaff Customer Support Hi 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 .breadcrumbs class December 12, 2019 at 11:14 am #1102468 sipahi You’re the best! December 12, 2019 at 11:16 am #1102476 DavidStaff Customer Support Glad to be of help January 2, 2020 at 6:02 am #1119741 Sonja 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 #1119974 DavidStaff Customer Support Hi 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 #1120009 Sonja 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 #1120035 DavidStaff Customer Support You’re CSS would need to be this: /* breadcrumb */ #breadcrumbs { font-size: 8px; } January 2, 2020 at 8:57 am #1120046 Sonja 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 #1120052 DavidStaff Customer Support You’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 #1120058 Sonja ๐ Thanks for explaining this! January 2, 2020 at 9:25 am #1120069 DavidStaff Customer Support You’re welcome Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In