Filter Thesis body classes


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



Copy this code and paste it in your HTML
  1. function custom_body_classes($classes) {
  2. if (is_home())
  3. $classes[] = "home";
  4. if (is_category())
  5. $classes[] = "category";
  6.  
  7. return $classes;
  8. }
  9. add_filter('thesis_body_classes','custom_body_classes');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.