Change color of blog title v links (h1, h1 a) and date

  • Unknown's avatar

    I’ve got two hopefully small problems that I can’t figure out (complete CSS newbie here).

    I’m using the Sandbox 1.6.1 theme, and modifying the Veracity theme (http://sndbx.org/results/designs/veracity/)

    The first is that I want to change the color of my blog title. The code used in Veracity is:
    h1 a,h1,h2 a,h2,h3 a,h3,h4 a,h4,div#menu ul li a,dt {color:#ccccde;}, so I separated h1 from the code, and added:
    h1 a,div#menu ul li a,dt {color:#4569E1;}. The problem is that both the blog title and the links on top of the site become the blue color. When I take out the “a” (h1) the blog title returns to the default color, while the page links remain blue. What code can I add so that just the blog title is a separate color?

    The second question is how can I change the color of the entry dates? Someone posted a similar question, and the response was to add “#content h2 em.” I’ve added this to the code (I believe) is controlling the date in different forms and nothing has changed. I’ve also just added color:#cccde; to no avail. Here’s the code:
    div.entry-date {text-align:right; margin:0 0 10px;}

    Any suggestions? Thank you for any help you might be able to provide!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
  • Unknown's avatar

    It helps to link to your blog as well as the theme demonstration so we can test properly but it looks like this should work:

    #blog-title a {color:#00ff00;}
    .entry-date abbr {color:#ff0000;}

    Obviously change the hex colour codes to whatever you want! You could find where these selectors are listed already in the css but it might just be easier to paste them in at the end so they take precedence over the defaults.

    lh

  • Unknown's avatar

    There’s the link! That code in my previous post should work fine if you just tag it on to the existing CSS at the very end.

    lh

  • Unknown's avatar

    Thank you so much! It worked perfectly! This was driving me nuts, I’m so glad I asked.

  • The topic ‘Change color of blog title v links (h1, h1 a) and date’ is closed to new replies.