WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] change color for entry-content h2 in Twentytwelve child theme (3 posts)

  1. 5high
    Member
    Posted 7 months ago #

    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: http://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.

  2. 5high
    Member
    Posted 7 months ago #


  3. 5high
    Member
    Posted 7 months ago #

    Sorted - all to do with my @ media styling code - if anyone's interested you can see info in another post http://wordpress.org/support/topic/why-do-my-page-titles-change-colour-on-smaller-screen?replies=7

Reply

You must log in to post.

About this Topic