• Resolved ausrmusings

    (@ausrmusings)


    It seems like my Header Title is the same H2 as my Post Titles. How would I go about changing only the color of my Post Titles without it affecting the name of my blog? I have this in my style.css file:

    #content h2 a:link, #content h2 a:visited, #header h1 a:link, #header h1 a:visited {
    	color:#333;
    	font-weight:normal;
    	text-decoration:none;
    	border:none;
    }
    #content h2 a:hover, #content h2 a:active, #header h1 a:hover, #header h1 a:active {
    	color:#999;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • IF the name of your blog is the same as Header Title, just do this:

    #content h2 a:link, #content h2 a:visited {
    	color:#what you want for post titles;
    	font-weight:normal;
    	text-decoration:none;
    	border:none;
    }
    #content h2 a:hover, #content h2 a:active, {
    	color:#999;
    }
    #header h1 a:link, #header h1 a:visited {color:#what you want for header}
    #header h1 a:hover, #header h1 a:active {color:#what you want for header}

    put in a value after the hash/pound sign for the color you want. Like:
    #999999, #333333, etc.

    and what if i want to change the colors of the fonts on the titles of my post and links, etc? whats h1 h2 h3 etc??

    Thread Starter ausrmusings

    (@ausrmusings)

    Thank-you so much for the code snippet, it works perfectly and I’m a happy camper. ??

    paramore,
    h1, h2, etc are heading tags. Change these in your theme stylesheet. Since every theme is different I can’t tell you exactly.

    A little css knowledge will go a long way toward making your theme your own — and it’s fun:

    https://codepunk.hardwar.org.uk/bcss.htm
    https://codex.www.ads-software.com/CSS

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post Title Color’ is closed to new replies.