Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active June 23, 2022 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/34b4d50b28bc81c89b2f to your computer and use it in GitHub Desktop.
Save srikat/34b4d50b28bc81c89b2f to your computer and use it in GitHub Desktop.
How to remove Page Titles selectively in Centric Pro
add_action( 'genesis_header', 'sk_remove_page_titles' );
/**
* Remove Page Titles for specific Pages.
*
* @author Sridhar Katakam
* @link http://www.sridharkatakam.com/remove-page-titles-selectively-centric-pro/
*/
function sk_remove_page_titles() {
$pages = array( 1149, 1306, 6, 24 );
if ( ! is_page( $pages ) ) {
return;
}
remove_action( 'genesis_after_header', 'centric_open_post_title', 1 );
remove_action( 'genesis_after_header', 'genesis_do_post_title', 2 );
remove_action( 'genesis_after_header', 'centric_close_post_title', 3 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment