How do I create a custom blockquote CSS?
I want it to look like the testimonial box and for the box width to follow the width of the text.
I would also like to have the option to adjust the padding, background color and rounded corners.
Thanks!
Hey Samuel,
I’m not sure I fully understand your intentions. Do you want a blockquote tag to look like the content in the page you linked to? If so, then why would you need two elements which look the same?
Best regards,
Rikard
I’m gonna use a different color so they won’t look the same.
Hey,
You can try adding CSS class to your Blockquote as following
<blockquote class="custom-bq">
Here goes your text
</blockquote>
and then add following code to bottom of Quick CSS field in Enfold theme options > General Styling tab and adjust as needed
#top blockquote.custom-bq {
border: none;
background-color: #e2e2e2;
padding: 20px 40px;
color: black;
border-radius: 5px;
}
Regards,
Yigit
Thanks!
How do I make the width of the box follow the width of the text? Thanks.
Hi,
Please add following code to Quick CSS field in Enfold theme options > General Styling tab
blockquote.custom {
width: max-content;
}
Best regards,
Yigit
It works! Thanks!