Custom CSS without plugin
-
Greetings,
I’m loving WordPress! I have figured out most of what I need to know, it’s so simple to use. I do have one question, though.I am trying to figure out how to add custom CSS to my pages and have come up with the following:
When editing a page in the page editor (TinyMCE?) I write this:
<blockquote>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</blockquote>
Then, in my CSS stylesheet I wrote this:
blockquote.tip-note { color: #313131; background: #dfffd9; border: 1px solid #a2cc99; border-radius: 0px; padding: 6px 14px; padding: 0.429rem 1rem; font-size: 14px; font-size: 1.0rem; font-style: normal; }
This does exactly what I wanted to do – complete with the styling. I works perfectly! However, I can’t help wondering if there is an easier way. I don’t want to use a plugin for this.. I’m just wondering if there is a way to do this without having to write
<blockquote>
every time I want to post a tip note.Thoughts?
Thank you ??
- The topic ‘Custom CSS without plugin’ is closed to new replies.