Categories
Blogging How Do I Web

WordPress – Genesis Page Template – Remove Title

I recently stumbled around for far too long trying to figure out how to remove the Title from a WordPress page that uses a StudioPress Genesis template so I decided to write up a post on how to accomplish this.

Let’s say you create a “Page” (not a post) named “BLOG” and want to use it as your blog template.  You probably don’t want the title to show up at the top of every page.  You could just delete the actual title from the page template but the problem is that you now have a page with no name.  With just one page this might not be a big deal, but with several it makes things a little complicated.  It also leaves an empty space at the top of the page which is reserved for the title.

The fix is very simple, just paste the following code before the genesis closing tag in your page template.

//* Remove the page title from a Page template
remove_action( 'genesis_before_loop', 'genesis_do_blog_template_heading' );

By default Genesis adds the page title into the genesis_before_loop.  This line simply removes it using a Hook.  The page title no longer shows up and neither does the blank space for it.  Add this line to every page template that you want the page title removed from or put it in your functions.php file to remove it from every page template at once.