Permalink
Browse files

Added function to remove classes from page list items

  • Loading branch information...
1 parent ff9de2a commit 96f841cba8e60f5c659aad5f4676e4c9c929df61 @splorp committed May 31, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 functions.php
View
@@ -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

0 comments on commit 96f841c

Please sign in to comment.