Site logo

Archived topic

Block Quote

1 reply · Started by Praveen on January 20, 2021

Viewing posts 1–2 of 2

Hi guys,

Is there a possibility to create a copy of the block quote function and then do some basic css additions to it? If yes, then this is what I want to achieve - >

1) A blockquote format but the background is some solid color
2) I am fine to use a shortcode or a direct code to execute it in the post.

Attached link for the format -

Hi there,

if you select the Quote Block ( or any Block ) you can give it a CSS class in Advanced > Additional CSS Class(es). For example red-quote. You can then add some CSS to that class eg.

.red-quote {
    background-color: red;
    border-color: black;
    color: #fff;
}

Then you can simply add the Additional CSS Class to any future blocks you create.

This archived topic is closed to new replies.