• Resolved qws

    (@qws)


    Hello,

    I have been trying to change only the sidebar links (I am working from the default theme), but have been unable to. When I change the CSS that controls them, it also changes the content links which I don’t want.

    Can anyone help me? Is this something I need to only change in the style sheet, or is this something I only need to change in the sidebar.php file, or both?

Viewing 3 replies - 1 through 3 (of 3 total)
  • That should only go in style.css. thats enough.

    Did you try adding this to the end of the style.css

    #sidebar a:link {
    color:#code you want;
    }
    #sidebar a:visited{
    color:#code you want;
    }
    #sidebar a:hover {
    color:#code you want;
    }
    #sidebar a:active {
    color:#code you want;
    }

    Thanks
    Sadish

    Thread Starter qws

    (@qws)

    That has fixed it, thank you so much! I had tried .sidebar, instead of #sidebar.

    when you are defining styles for <div id=”sidebar”> , use #sidebar in style.css

    when you are defining styles for <div class=”sidebar”> , use .sidebar in style.css

    Thats it 🙂

    Moderators can make this thread “resolved”.

    Sadish

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSS Changes to links in sidebar’ is closed to new replies.