• Hi, I’m wondering if this is possible to do. I’m working on a blog at https://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!

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

    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

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change the link colour for just one page link in the sidebar?’ is closed to new replies.