View Single Post
  #23  
Old June 5th, 2012, 09:27 AM
bkozlowski bkozlowski is offline
 
Join Date: Nov 2009
Posts: 73
Default

Hi Eric,

I tried the following as a function, but it removed all my H1 tags from the posts and pages? What is the proper way to write this function?

Code:
add_filter( 'genesis_post_title_output', 'remove_store_title' );
function remove_store_title() {
    if (!is_dfr())
        echo '<h2 class="entry-title"><?php the_title(); ?></h2>';
    else
	echo '<h1 class="entry-title"><?php the_title(); ?></h1>';  
}
Thanks