[Resolved] Pullquote Colour Issue

Home Forums Support Pullquote Colour Issue

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1503574
    James

    I’m having an issue getting the colours of my pullquotes to display in my posts. In the Gutenburg editor, the colour is there, but when I either preview or post, the horizontal colour bars are non-existent. I would also like to get rid of left vertical bar, if possible, for it *does* show in the preview/posts.
    Pullquote block editor
    My site: http://www.MiramichiReader.ca

    Thanks!

    James M. Fisher
    www.MiramichiReader.ca

    #1503640
    David
    Staff
    Customer Support

    Hi there,

    can you link me to a post where i can see the issue?

    #1503650
    James

    Sure: quote issue.
    In the editor, I have red horizontal bars top and bottom (and that persistent grey vertical bar).

    James M. Fisher
    www.MiramichiReader.ca

    #1503662
    David
    Staff
    Customer Support

    Try this CSS:

    .wp-block-pullquote {
        border-top: 2px solid;
        border-bottom: 2px solid;
    }
    .wp-block-pullquote blockquote {
        border-left: 0;
    }

    Core blocks keep changing their markup and neglect to provide the front end CSS – which is a pain. But we’ll take a look at our theme CSS so we can cover this in the future.

    #1503681
    James

    Nice! Thanks again, David.

    James M. Fisher
    www.MiramichiReader.ca

    #1503684
    David
    Staff
    Customer Support
    #1503818
    Tom
    Lead Developer
    Lead Developer

    Just a heads up that WordPress has an optional stylesheet that handles this kind of stuff I believe.

    GP doesn’t add it by default, but you should be able to add this PHP:

    add_theme_support( 'wp-block-styles' );

    #1503876
    James

    Where should I add this code, Tom?

    Thanks,

    James M. Fisher
    www.MiramichiReader.ca

    #1503877
    Elvin
    Staff
    Customer Support

    Hi James,

    It’s a PHP snippet.

    Here’s how to add PHP codes – https://docs.generatepress.com/article/adding-php/

    A wise man once said:
    "Have you cleared your cache?"

    #1503886
    James

    Done. I would still like to get rid of that vertical grey line. πŸ™‚
    EDIT: nevermind. Clearing the cache got rid of it. Wise man!

    James M. Fisher
    www.MiramichiReader.ca

    #1503941
    Elvin
    Staff
    Customer Support

    EDIT: nevermind. Clearing the cache got rid of it. Wise man!

    Nice one.

    No problem. πŸ™‚

    A wise man once said:
    "Have you cleared your cache?"

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