Customize the entry title - in this case, removing the links and changing the header type.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Remove Links from Post Titles in Genesis | |
* | |
* @author Joshua Nelson | |
* @link http://joshuadnelson.com | |
* | |
*/ | |
add_filter( 'genesis_post_title_output', 'jdn_custom_post_title' ); | |
function jdn_custom_post_title( $title ) { | |
if( get_post_type( get_the_ID() ) == 'post' ) { | |
$post_title = get_the_title( get_the_ID() ); | |
$title = '<h3 class="entry-title" itemprop="headline">' . $post_title . '</h3>'; | |
} | |
return $title; | |
} |
Source: https://gist.github.com/joshuadavidnelson/7443705
Tags: Genesis, Post Title