Post Title Color (5 posts)

  1. moneyeyes
    Posted 9 years ago #

    Hello all,

    this is a basic question that I had trouble finding how to do. How do you change the post title's (every entry) color? It's a h2 class of content, I believe but couldnt locate the correct attribute to mod

    Thanks for help me out.

  2. Michael Bishop

    Posted 9 years ago #

    Generally, the problem is that the post title is an h2, but it's also a link. So you have to set the CSS to something like .content h2 a {color: newcolor} also keep in mind you will need to edit the .content h2 a:hover, etc.

  3. moneyeyes
    Posted 9 years ago #

    thanks for the reply miklb, where exactly would you place the code (I'm after a black title yet blue links, and now all my titles are blue since I made the links blue):

    .content h2 a {color: #000000}
    .content h2 a:hover {color: #000000}

    I wasn't entirely able to make it work due to placement I'm guessing.

  4. eridan
    Posted 9 years ago #

    The placement of the code isn't that important, however, grouping simular items makes it easier later on, i.e. headings grouped together and so on.

    if it's not working, try removing the .content, and just use h2 a {color:#000} and h2 a:hover {color:#000}, this will change all the h2 links on the entire website. Also make sure you don't have any other h2 a statements, with some other colour setting.

  5. moneyeyes
    Posted 9 years ago #

    worked, thanks a ton eridan!

Topic Closed

This topic has been closed to new replies.

About this Topic