Wordpress body_class(). How to set the right class for my index?


Wordpress body_class(). How to set the right class for my index?



I customised my theme where the index.php works as a "page". But with <body <?php body_class(); ?>> it's create the class "blog", which I don't want to. I want to change the class name to "index" or "home. How can I do this?

Thanks.


Managing Multiple Wordpress Sites

1:

Problem when I try to move my WordPress blog to a new server
The body_class() function accepts several parameters. WordPress Fatal Error: call to undefined functionThe classes are restricted to the defaults listed, although I think you could filter it in your theme's function.php file and let "body" out. Display wordpress comments before the plugins?. How to create feedburner feed for sub-folder? After checking out the source code, I'm not really sure if you must leave it out. How to style the first and last menu item in WordPressIt's sort of hard-coded, you should filter receive _body_class() maybe (if possible).. Question regarding register_deactivation_hook in Wordpress Check the link to read more around it.. Custom searches in WordPress


73 out of 100 based on 48 user ratings 283 reviews

#