[wp-hackers] Styling of "post date"

Arthur Jennings timeistight at gmail.com
Sat Sep 11 23:29:31 UTC 2004


Better to keep it a heading with a class. That degrades more elegantly.


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>'); ?>
> 
> 
> 
> 
> On Sun, 12 Sep 2004 00:20:33 +0100, Allan Mertner <amwp at mertner.com> wrote:
> > Hi,
> >
> > I would like to suggest a small change to index.php to allow better
> > control over the style of the date/timestamp of the post.
> >
> > The change is trivial: change
> >
> >    <?php the_date('','<h2>','</h2>'); ?>
> >
> > to
> >
> >    <?php the_date('','<h2 class="postdate">','</h2>'); ?>
> >
> > With this change, the default behaviour is unchanged, but people can add
> > a .postdate style to make it look different if they want.  For example,
> > I use the following to achieve the effect I need:
> >
> > .postdate {
> >    font-variant: small-caps;
> >    font-size: large;
> >    float: left;
> >    border-right: 1px solid #ccc;
> >    padding-right: 3px;
> >    width: 3em;
> > }
> >
> > Is this the right way and the right place to post this? :)
> >
> > Thanks,
> > Allan
> >
> > _______________________________________________
> > hackers mailing list
> > hackers at wordpress.org
> > http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> >
> 
> 
> --
> - Mark Shields
> 
> 
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> 



-- 
Arthur Jennings
http://www.timeistight.com



More information about the hackers mailing list