WordPress.org

Ready to get started?Download WordPress

Forums

#wp-calendar #today color change (9 posts)

  1. southsou
    Member
    Posted 10 years ago #

    Here's what's in my wp-layout.css:
    #wp-calendar td:hover, #wp-calendar #today {
    background: #c0c08e;
    color: #000;
    }

    No matter what I do to change the 'color' property, I see no effect on the web page.
    Thanks for any help.
    -- southsou

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Which colour exactly are you wanting to change ?
    If I change background, I see a change ...
    Have you tried putting #00ff00 as the colour ? It's bright green, and will stand out on most pages ?

  3. southsou
    Member
    Posted 10 years ago #

    podz:
    I want to leave the background color as is. When I change the font color to black or white, it does not show up. Thanks.

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    One thing .. if you see no change, on a windows machine press CTRL and F5 to force a hard refresh. It may be that the page is cached.

  5. southsou
    Member
    Posted 10 years ago #

    podz:
    Once again, thanks. The trouble apparently is due to the following code in wp-layout.css:
    a:link {
    color: #c0c08e;
    }

    This color is the same as the background color I chose for the '#wp-calendar #today' selector. Apparently, the 'color' property of this selector overrides what I chose for the 'color' property in the '#wp-calendar #today' selector. I thought that a property selector later in the CSS would override previous properties. But maybe it has to with the way the code is read by the php engine (a purely uninformed guess). In any event, if a date in the calendar is also a link to post on my page, the date gets the same color as the background and the 'color' property in #wp-calendar #today has no apparent effect.
    Does this make any sense?
    --southsou

  6. ohdear
    Member
    Posted 10 years ago #

    I could be wrong but I think you solve this by adding
    #wp-calendar #today a {
    background: #c0c08e;
    color: #000;
    }

  7. southsou
    Member
    Posted 10 years ago #

    ohdear:
    Thanks for the suggestion. I'll give it a whirl.

  8. southsou
    Member
    Posted 10 years ago #

    ohdear:
    It works. Many thanks.
    -- southsou

  9. ohdear
    Member
    Posted 10 years ago #

    No problem, glad it worked for you :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags