Skip to content

Instantly share code, notes, and snippets.

@toddsby
Created January 17, 2014 21:30
Show Gist options
  • Save toddsby/8481963 to your computer and use it in GitHub Desktop.
Save toddsby/8481963 to your computer and use it in GitHub Desktop.
<?php
/* Filter to the post_class. */
add_filter( 'post_class', 'remove_class' );
/**
* Remove class from post_class() function.
*/
function remove_class( $classes ) {
$classes = array_diff( $classes, array( 'hentry' ) ); // seperate with commas for more than one class.
return $classes;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment