Block Quote Styling

  • Author
    Posts
  • #162574

    clarebear6t3
    Member

    Hi team,

    Can you please assist with CSS coding to ensure wp block quotes always appear italic?

    Just the quote text and not the quote citation.

    Thank you

    The blog I need help with is clarehoran.com.

    #162605

    designorbital
    Theme Author

    Hi,

    If you are using Quote Block, then you have an option in controls to make it Italic or not.

    Further, please share the page where you are using quotes so it will help me to guide you further.

    Thanks

    #162608

    clarebear6t3
    Member

    Thank you,

    I am using the controls to force italic styling but was just curious as to whether or not a snippet of CSS could do this automatically as my previous (now retired) theme styled blockquotes in italics by default.

    This post has a blockquote where I have manually applied the styling: https://clarehoran.com/2021/03/21/squares-in-april/

    But this is a page, first published back in 2014, where I used a blockquote that no longer has italic styling applied: https://clarehoran.com/about/

    Thank you for assisting with this.

    #162669

    designorbital
    Theme Author

    Hi,
    Please try the following CSS snippet. It will target all blockquotes.

    
    blockquote {
        font-style: italic;
    }
    

    Hope it will help you.
    Thanks

    #162672

    clarebear6t3
    Member

    Thank you – works a charm.

    #162680

    designorbital
    Theme Author

    Thanks for your feedback.

The topic ‘Block Quote Styling’ is closed to new replies.