Last active
June 23, 2022 13:09
-
-
Save srikat/34b4d50b28bc81c89b2f to your computer and use it in GitHub Desktop.
How to remove Page Titles selectively in Centric Pro
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
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