/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// add classes to post_class(); // add more name to $classes[] = 'your-class-name'; add_filter('post_class', 'sfn_add_post_class'); function sfn_add_post_class( $classes ) { $classes[] = 'your-class-name'; return $classes; } // end sfn_add_post_class