Im working with a child-theme of Wordpress-Bootstrap by 320press.com I want to get rid of the lead class added to the first paragraph of the content.
I looked in Wordpress codex in these articles:
But im not so experienced in PHP, only HTML - so i cant really tell if its a filter or a function that i need to remove - i tried both solutions in above links, but i cant seem to get any of them to work.
This is the PHP from functions.php that adds the class
// Add lead class to first paragraph
function first_paragraph( $content ){
global $post;
// if we're on the homepage, don't add the lead class to the first paragraph of text
if( is_page_template( 'page-homepage.php' ) )
return $content;
else
return preg_replace('/<p([^>]+)?>/', '<p$1 class="lead">', $content, 1);
}
add_filter( 'the_content', 'first_paragraph' );