WordPress.org

Ready to get started?Download WordPress

Forums

Change the link colour for just one page link in the sidebar? (4 posts)

  1. gingerpixel
    Member
    Posted 5 years ago #

    Hi, I'm wondering if this is possible to do. I'm working on a blog at http://www.accordadvisorygroup.com and they want me to change the colour of the "blog" link in the sidebar so it is blue. They want the rest of the page links to stay black. Is this possible? Is there anyway of singling out one page link in the stylesheet?

    It's running the Modicus theme.

    Any help would be greatly appreciated!

  2. curtismchale
    Member
    Posted 5 years ago #

    if your menu is hand coded just add a special class to the link. If it is auto generated by WP you may want to code that one item in so you can add a class to it. You may also consider using advanced CSS selectors to specifically target the first <li> under the <ul> but this will currently not work in all browsers. IE will support it in version 8 but not right now so it is only a partial solution.

  3. Diane Sontag
    Member
    Posted 5 years ago #

    And I would like to learn how to change the color of one link on one post of my blog. I am linking out to another site and I want to change the color of the text of the link I am creating just on one page.

    Thank you

  4. Technokinetics
    Member
    Posted 5 years ago #

    WP's wp_list_pages function automatically gives every link a unique class that can be used to style it. For example, the blog link on the site referenced above has a class of "page-item-6".

    - Tim

Topic Closed

This topic has been closed to new replies.

About this Topic