Frequently Asked Questions:

How to change font & link colors in footer/sidebar area

Jennifer sent me an email today asking how to edit the font (and I assume link) colors in the large footer area of her blog. That, combined with a conversation I had yesterday with Matt, who handles installations, kind of pointed out to me that my CSS doesn’t make it overwhelmingly clear how to make changes to this footer area. So, I’m going to make the code a bit more clear for future purchasers, and tell you all how to tinker with these colors in this write-up.

The area in question is this big footer area (technically its your sidebar, but since it’s a one-column theme, it’s more like a footer), shown below.

There are two types of text on in the footer area, and you can style them individually. We’ll start with non-link text (circled above in red) which basically is your widget headers.

If you don’t like the color that these headers are inheriting from other parts of your CSS, here’s how to change it. In your WP admin area, under “Design” (”Presentation” in WP 2.3.3 and earlier) = “Theme Editor” choose the “Stylesheet (style.css)” file to edit. Then scroll down to about lines 108-113 where you should see this chunk of code:

/* edit these to change background color and/or
padding of "sidebar" area at bottom of page */
div#sidebar_footer {
background-color: #F0F0F0; /* bg color of footer-sidebar area */
padding: 20px 0 10px 0; /* top, right, bottom, left padding */
}

Right before the closing “}” on the last line of this chunk, add the line highlighted in red so that it looks like this:

/* edit these to change background color and/or
padding of "sidebar" area at bottom of page */
div#sidebar_footer {
background-color: #F0F0F0; /* bg color of footer-sidebar area */
padding: 20px 0 10px 0; /* top, right, bottom, left padding */
color: #ff9900; /* color of non-link text in footer */
}

Except change the color code to whatever you want it to be. This will also change the color of the bullets next to the links, by the way. Save your changes by clicking “update file” and view your blog, refreshing your browser, to see you changes.

To change the colors of your links in the footer, we’re going to have to paste in some additional CSS code and then change the six-digit color codes to suit us. To do that, still in your “Stylesheet”, scroll to the very bottom, press return a few times and on a brand new line paste in the following code:

/*styles sidebar-footer links */
#sidebar_footer a:link {
text-decoration: none; /* no underlining default */
color: #3333CC; /* color of links not yet visited */
}
#sidebar_footer a:visited {
text-decoration: none; /* no underlining default */
color: #663399; /* color of links already visited */
}
#sidebar_footer a:hover {
text-decoration: underline; /* underlining as hover default */
color: #000000; /* color of links when being hovered over */
}

Then, just go back and edit the color codes for the three states of the links: normal (unvisited), visited, and hovered. You can also experiment with switching on and off underlining in the various states using either “none” or “underline” for the value of “text-decoration:”. Save your changes, check your blog, refresh your changes, and admire your work.

Related post: How to customize your footer/sidebar area

Questions? Instead of emailing for support, leave a comment below so everyone can benefit from any clarification.

14 Responses to “How to change font & link colors in footer/sidebar area”

  1. On Corey said:

    I would LOVE to be able to have some sort of block quote capability in the comment section so that if I reply to commenters that it stands out and they can see immediately that I replied in the comments. That is really the only thing I miss from my old theme!

    Thanks!

  2. On Andrea Robinson said:

    Hey Jared.

    I’m not sure where to post this…

    How can I change the color of a link within a post???

  3. On Jared said:

    @Andrea Robinson: just add a section in your stylesheet like so:

    .entry-content a {
    color:#ff9900;
    }

    but change the color, obviously.

  4. On Andrea Robinson said:

    perfect!! Thanks.

  5. On photoTristan said:

    Hi Jared,

    What’s the best way to change the font sizes for the text in the sidebar?

    Thanks.

  6. On Jared said:

    @photoTristan: add a rule in the very bottom of your stylesheet that says:

    #sidebar_footer {
    font-size:11px !important;
    }

    or whatever size you want.

  7. On phototristan said:

    Great, thanks!

  8. On Eleanor said:

    Hi

    how do you change the size of a link text in your side bar?
    I am using super adsense theme.

    Eleanor

  9. On Gabrielle said:

    I’m having problems with the links in my sidebar on my blog. The “about me” and “blog archive” links show up how I want them to (bold when rolled over), but the links in the other ‘widgets’ are underlined. I don’t want them underlined and I can’t figure out how to fix this! Any help would be greatly appreciated.

  10. On Anatoly said:

    I like long walks, especially when they are taken by people who annoy me.

  11. On Peru Travel Agency said:

    Tours with Super Peru Bolivia Tours to plan your best Tours ever in Bolivia and Peru. Explore our colorful tourism and pursue your own Peru Bolivia interests to create your dream Holidays in the Land of Incas Peru and Mysteries. Bolivia photo galleries, as well as information about Peru and Bolivias National Parks and World Heritage Sites. In addition to Bolivia and Peru Vacation Packages, we also offer flight tickets

  12. On Play Poker Australia said:

    Hey just found this blog, been looking around at a few websites but this site is one of the best I have seen. Great work!

  13. On Freda Loverich said:

    More good stuff!

  14. On Giselle Propheter said:

    Usually an awesome place after i check out this blog along with other sites you hold. Understand your own insights.

Leave a Reply