Wednesday, January 13, 2016

Custom WordPress Body Class Examples

WordPress has both a body_class function and a body_class filter (hook). The body_class function is used in themes to add the classes autogenerated by WordPress, to the body tag of your website. This is how it is added to the header.php file of your theme: #wordpress #smallbusiness #entrepreneur

https://managewp.org/articles/11507/custom-wordpress-body-class-examples

No comments:

Post a Comment