Skip to content

Instantly share code, notes, and snippets.

@kepek
Created December 12, 2011 19:00
Show Gist options
  • Save kepek/1468591 to your computer and use it in GitHub Desktop.
Save kepek/1468591 to your computer and use it in GitHub Desktop.
<?php
function kepek_excerpt_paragraph_class($excerpt) {
$excerpt = str_replace('<p', '<p class="excerpt"', $excerpt);
return $excerpt;
}
add_filter('the_excerpt', 'kepek_excerpt_paragraph_class');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment