change color for entry-content h2 in Twentytwelve child theme
-
Hi,
I currently have a child theme of Twentytwelve, which is working Ok, and where I’ve managed to change the font colour of the .entry-content h3 to red (#BF0202).
I’d like to change all .entry-content headers to the same colour, but nothing seems to work! I’ve read heaps of Q&A here, and tried a variety of options, but with no luck.
My original css for just the .entry-content h3 was this:
.entry-header .entry-title, .entry-content h3 { color: #bf0202!important; }
which worked fine for the h3
So I changed it to this:
.entry-header .entry-title, .entry-content h3, .entry-content h1, .entry-content h2, .entry-content h4, .entry-content h5, .entry-content h6 { color: #bf0202!important; }
which was still fine for the h3, but had no impact on h1,2,4,5 and 6 – just can’t figure out why…
My current css is this:
.entry-header .entry-title { color: #bf0202 !important; } h1.entry-content, h1.comment-content, h2.entry-content, h2.comment-content, h3.entry-content, h3.comment-content, h4.entry-content, h4.comment-content, h5.entry-content, h5.comment-content, h6.entry-content, h6.comment-content { color: #bf0202 !important; }
You can see it in the recent blog: https://trevorpenfold.com/best-2013-photography-2014/ where the blog title is fine, and the 1st subtitle is OK, as it’s an h3, but the next blog sub-title is an h4 and doesn’t show the red colour, and even more weirdly it shows in Firebug as being body/paragraph text (yet was definitely marked as Heading 4).
Any ideas?? Thanks.
- The topic ‘change color for entry-content h2 in Twentytwelve child theme’ is closed to new replies.