[Support request] style Yoast breadcrumbs

Home Forums Support [Support request] style Yoast breadcrumbs

Home Forums Support style Yoast breadcrumbs

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1039777
    Femke

    Hi,

    I’d like to style the Yoast breadcrumbs but I cant get it to work. I tried some css found on this forum and placed it in the customizer>additional css that didnt work, then i tried Simple Css plugin, pasted it in there but no changes. Am I doing something wrong?

    #1039790
    Leo
    Staff
    Customer Support

    Hi there,

    How are you adding the breadcrumbs?

    It doesn’t have the usual selectors from what I can tell.

    Can you try this method?
    https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-element

    #1040668
    Femke

    I added the yoast breadcrumbs shortcode in the hook element. I have them showing in the right place on my site now but cant get any styling to them.

    #1040688
    Leo
    Staff
    Customer Support

    That’s very strange. It used to have a specific selector we can use.

    Try David’s CSS here:
    https://generatepress.com/forums/topic/using-yoast-breadcrumbs-changing-font-with-css-not-working/#post-1040050

    #1040696
    Femke

    ok i tried that but also doesnt make any difference ?

    #1040701
    Leo
    Staff
    Customer Support

    Can you try wrapping the shortcode like this and let me have another look?

    <div class="yoast-breadcrumbs">
     [Short code here]
    </div>
    #1041062
    Femke

    ok i have pasted this in the element hook now. thanks for checking

    #1041145
    David
    Staff
    Customer Support

    Hi there,

    you can now target the yoast-breadcrumbs selector to style eg.

    .yoast-breadcrumbs {
    /* Styles here */
    }
    #1819285
    Matt

    @david and @leo – thanks guys! This helped a lot.

    #1819338
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.