wordpress body_class


/ Published in: PHP
Save to your folder(s)

Template Tag body_class

The coming WordPress 2.8 provides a new Template Tag, body_class. This function gives the body element different classes, which gives you the possibility to use it effectively with CSS.


Copy this code and paste it in your HTML
  1. <body <?php body_class(); ?>>

URL: http://wpengineer.com/wordpress-28-body_class-automatic_feed_links/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.