Skip to content

Instantly share code, notes, and snippets.



Last active Oct 19, 2015
What would you like to do?
Remove Genesis title links (for use in template file)
//* Do not include the opening php tag
//* Remove the link from titles
add_filter( 'genesis_post_title_output', 'prefix_custom_post_title' );
function prefix_custom_post_title( $title ) {
$post_title = get_the_title( get_the_ID() );
$title = '<h2 class="entry-title" itemprop="headline">' . $post_title . '</h2>';
return $title;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment