Lego2012
9/26/2016 - 10:13 PM

Genesis filter a Post Page Title

Genesis filter a Post Page Title

<?php
// Do NOT include the opening php tag

// Goes to Dynamik Custom - Functions Credits: http://adamcap.com/code/filter-genesis-h1-post-titles-to-add-for-styling/

/**
* Filter Genesis H1 Post Titles to add <span> for styling
*
*/	
add_filter( 'genesis_post_title_output', 'ac_post_title_output', 15 );
function ac_post_title_output( $title ) {
if ( is_singular() )
$title = sprintf( '<h1 class="entry-title"><span>%s</span></h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) );
return $title;
}