/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
add_filter('body_class','additional_body_classes'); function additional_body_classes($classes) { $classes[] = 'class-i-need'; $classes[] = 'another-additional-class'; $classes[] = 'third-class'; return $classes; }
URL: http://wpcanyon.com/tipsandtricks/adding-classes-to-body_class-in-wordpress/
Comments
