WordPress.org

Ready to get started?Download WordPress

Forums

Changing color without changing the links color (8 posts)

  1. daveconrey
    Member
    Posted 7 years ago #

    Ok, I've searched for this for a bit now and I can't seem to find the answer. All the links on my page are a blueish tone. Even my headlines on my main page are blue since they are clickable. Is there any way for me to change the color of my headlines without changing the color of my links?

  2. niiiiick
    Member
    Posted 7 years ago #

    Are you talking about daveconrey.com? (I grabbed it from another of your posts...)

    By 'Headlines' do you mean the links under Recent Posts? Or do you mean the post titles?

    Or are you referring to another site...

  3. daveconrey
    Member
    Posted 7 years ago #

    Actually I'm referring to my other site, http://www.mode-mag.com and I mean the post titles.

    From the home page, the post titles are clickable and blue like all the links within the post itself. When I click on the post title to that posts individual page, the post title becomes black and not clickable.

    So I'm wondering if its possible to make the post titles black all the time but not changing the link color sitewide.

    too much explanation?

  4. niiiiick
    Member
    Posted 7 years ago #

    Well, from what I gather, your post titles are nested in <h2> tags. So just put something in your style.css with:

    #content h2 a{color:#000}

    I think that's how it goes.

  5. daveconrey
    Member
    Posted 7 years ago #

    Just tried it and nothing happened. The guts of this theme I'm using seem a lot more complicated than need be, but I can't get ahold of the themes creator to ask him how he worked it out.

    Is there a way to figure out what tag he's using for the post titles to make sure I'm editing the right part of the style?

  6. Doodlebee
    Member
    Posted 7 years ago #

    From the home page, the post titles are clickable and blue like all the links within the post itself. When I click on the post title to that posts individual page, the post title becomes black and not clickable.

    that means that, in the individual (single posts/archived page) page, the theme editor took out the link to the individual page. Makes sense, since you're already there.

    It's no longer a link on the archived page. You need to add "div.post h2 {color:#286EA0;}" to make the header on the archived page the same color blue as the regular page. It sill won't be clickable, though - as it's not a link.

  7. daveconrey
    Member
    Posted 7 years ago #

    Doodlebee, thanks, but that's actually the opposite of what I want to achieve. I want the archive to stay black and want the clickable post headers to be black as well.

    Basically I think there is too much blue on my page. I'm trying to break up the page a bit by adding some black to all the post titles. Know what I mean?

  8. Doodlebee
    Member
    Posted 7 years ago #

    Okay 0- then all you have to do is add "div.post h2 a {color:#000;}" to your stylesheet. Your header links will then be black while the rest stay blue (just tried it and it works fine).

Topic Closed

This topic has been closed to new replies.

About this Topic