[wp-hackers] Styling of "post date"

Mike Little journalized at gmail.com
Sat Sep 11 23:33:20 UTC 2004


On Sat, 11 Sep 2004 19:22:58 -0400, Mark Shields <laebshade at gmail.com> wrote:
> I took it further and just made it a div.
> 
> <?php the_date('', '<div class="postdate">','</div>'); ?>

But then you lose the *semantic* meaning of that part of the markup
(the fact that it is a second level heading). That would be a bad
thing.

The correct way to style the date does not involve any changes to your template!

If you want to change the styling of the h2 contained within the
content div then add a css rule to your style sheet like this.
#content h2 {
color: red;
}


It's as simple as that! :-)

Mike

-- 
Mike Little
http://zed1.com/journalized/



More information about the hackers mailing list