Skip to content

Commit

Permalink
Added function to remove classes from page list items
Browse files Browse the repository at this point in the history
  • Loading branch information
splorp committed May 31, 2010
1 parent ff9de2a commit 96f841c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions functions.php
Expand Up @@ -26,7 +26,21 @@ function simple_post_class() {

add_filter( 'post_class', 'simple_post_class' );



// Remove list item classes from page listing

function declass($c) {
return preg_replace('/<li class=\".+?\">/', '<li>', $c , -1);

}

add_filter('wp_list_pages','declass');



// Add support for the_post_thumbnail

if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 600, 9999, true ); // Normal post thumbnails
Expand Down

0 comments on commit 96f841c

Please sign in to comment.