Archived topic
Colored Boxes of Text in Blog Posts
9 replies · Started by Ken on May 13, 2020
Is there a way to quickly create colored boxes of texts in blog posts?
My reference is to something like this: https://wpsites.net/web-design/create-colored-boxes/
Thank you.
Hi there,
I'm not sure what you meant by quickly but the page you linked provide pretty good instructions.
Another solution is to use GenerateBlocks:
https://generateblocks.com/
To better explain, I'm adding the following CSS code to 'Appearance' => 'Customize' => 'Additional CSS':
/*Colored Box Tests*/
.alert {
background-color: #eee;
border: 1px solid #ddd;
display: block;
padding: 10px;
}
Then, in the blog post when I write: <div class="alert">test</div> nothing happens after I publish.
In my past theme, you go 'Appearance' => 'Edit CSS' to add the .alert CSS code.
Am I doing something wrong here? Thank you.
That should work.
Can you link me to the page in question?
Is it possible to send the link as a response here without creating a new thread? I don't see the option to send a link discretely now.
You can edit the original topic and add it in the private URL field.
Please see the parent post with the link provided.
It's not working as it's wrapped in a <p> tag and the quotation mark is wrong.
Make sure you are not using the visual editor.
As always, thank you, Leo. Great support!
No problem :)