Return to Support

Changing the Colour of Sidebar Widget Links

Home Forums Graphene WordPress theme Support Changing the Colour of Sidebar Widget Links

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4597
    Metamorpheus
    Member

    Hello,

    I’m looking to change the colour of the links/post titles in my Recent Posts widget (sidebar 2) from blue to black. My username contains the website’s URL.

    Any ideas?

    Thanks!

    #28638
    Josh
    Member

    Hmmmm… love your site!! I’ll have to spend some time over there. What do you know about a single daddy going to grad school?? 🙂

    To adjust your links, try this in your custom css:

    a, .post-title, .post-title a, #comments > h4.current a {
    color: #000080;
    }

    This hex color will adjust the normal state color.

    a:hover, .post-title a:hover {
    color: #1919C8;
    }

    And this will adjust the hover state color.

    #28639
    Metamorpheus
    Member

    Thanks Josh… It’s nothing special really, just a humble niche site 🙂

    Your code worked, thank you.

    #28640
    Metamorpheus
    Member

    Whoops, responded a little too soon.

    As it turns out, that code turns all the links on the site into the chosen colour. I just want the links in the sidebar widget to be black, whilst keeping the content links dark blue.

    Any ideas?

    #28641
    Josh
    Member

    Oops… sorry about that. I forgot to isolate it to the sidebar. Try this:

    #recent-posts-4 a, #recent-posts-4 .post-title, #recent-posts-4 .post-title a {
    color: #000080;
    }
    #recent-posts-4 a:hover, #recent-posts-4 .post-title a:hover {
    color: #1919C8;
    }

    I think that should do it.

    #28642
    Metamorpheus
    Member

    Done and done. 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.