Skip to content

Instantly share code, notes, and snippets.

@About2git
Forked from srikat/functions.php
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save About2git/85f413941a192689906d to your computer and use it in GitHub Desktop.

Select an option

Save About2git/85f413941a192689906d 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