WordPress.org

Ready to get started?Download WordPress

Forums

Css Question (3 posts)

  1. apathy
    Member
    Posted 8 years ago #

    Does anyone know what code to put in the css so that the link or background color is different? Like, on the calendar, for the days you have a blog entry, you can click on the day and it brings you to the blog. I want to know how to make it so that you can see there is a blog entry for that day (meaning different link color or background color) Hope that made sense.

    I know how to make it so when you hover over the calendar link, it changes color but I want to color to already be there so they know I have an entry for that day.

  2. josalmon
    Member
    Posted 8 years ago #

    To change the colour of an "active" date in the calendar, you would use code similar to this:

    #wp-calendar a:link {
    color: #7098cc;
    }

    (That's a light blue colour)

  3. Lorelle
    Member
    Posted 8 years ago #

    Well, I recommend that you see the following documents that will help you figure this out. Everything is modified in the style.css for the Theme you are using, but finding which CSS style matches which part is a challenge. Luckily, all the calendar information is usually together and you can change the information there.

    The links come in two main "flavors": link and hover. You should see CSS for both of those that looks something like this:

    a:link {color:blue.....}
    a:hover {color:red....}

    Change the color there to what you want for which action. Here is more help.

    CSS
    Finding Your CSS Styles
    Customizing Your Sidebar

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags