Site icon WP Smith

Remove Page Title from a Genesis Page with a Custom Template

Recently, I created a plethora of page templates to help with the styling of various similar pages and sub-pages, etc. However, I needed to remove to page title. So here is what I did.

In my functions.php file, I added

[php]//REMOVE PAGE TITLE
function child_remove_page_titles($page) {
if (is_page($page)) {
remove_action('genesis_post_title', 'genesis_do_post_title');
}[/php]

Then in my template, I added:

[php]add_action('get_header', 'child_remove_page_titles(115)'); //change 115 to whatever you want it to be[/php]