WordPress.org

Support

Support » Themes and Templates » Changing color without changing the links color

Changing color without changing the links color

  • daveconrey
    Member

    @daveconrey

    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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…

    daveconrey
    Member

    @daveconrey

    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?

    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.

    daveconrey
    Member

    @daveconrey

    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?

    Doodlebee
    Member

    @doodlebee

    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.

    daveconrey
    Member

    @daveconrey

    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?

    Doodlebee
    Member

    @doodlebee

    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).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing color without changing the links color’ is closed to new replies.