Genesis and WordPress Tutorials
by Sridhar Katakam 2 Comments Favorited: 0 times
In the past I wrote about 4 methods to Selectively Remove Entry Titles in Genesis. A few of those methods will not work in Centric Pro because this particular theme has built-in code to reposition Page titles.
If you are looking to remove Page Titles for only specific Pages in Centric Pro, add the following sample code in functions.php and replace the Page IDs.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Find my tutorials helpful and wish to donate?
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Great advice on the site here.
How would I remove the titles from ALL the pages and posts.
Thanks.
@ Ed… you need to remove line 9. that will remove titles from all pages.
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() {
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 );
}