Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Created September 14, 2015 08:19
Show Gist options
  • Save craigsimps/883cc59e7174d2fcd53c to your computer and use it in GitHub Desktop.
Save craigsimps/883cc59e7174d2fcd53c to your computer and use it in GitHub Desktop.
Remove links from post titles in Genesis.
<?php
add_filter( 'genesis_post_title_output', 'genesis_starter_custom_post_title' );
/**
*
* Remove Links from Post Titles in Genesis
*
* @author Joshua Nelson
* @link http://joshuadnelson.com
*
*/
function genesis_starter_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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment