Bourn Creative

Transforming Businesses into Extraordinary Brands

  • Services
  • Portfolio
  • About
  • Praise
  • Start Your Project
Remover Genesis Framework Blog and Archive Template
standard icon

How To Remove The Genesis Blog and Archive Page Templates

April 19, 2014 Brian Bourn

With the recent release of WordPress 3.9, several new features for theme developers were introduced to further enhance what can be baked into new WordPress themes. Devin Price has a great post over at wptheming highlighting many of the new features. The inspiration for the Genesis specific filter below came from his post.

One reason we design and build WordPress themes on the Genesis Framework is the nature in which it is built. With Genesis, I have the ability to add, filter, or remove almost everything.

Up until WordPress 3.9, the Genesis blog and archive page templates were inherited by child themes and there wasn’t a simple way to remove them. Why does this matter? When we build custom child themes for clients, we use a variety functions to remove every unnecessary item and option from Genesis to create a simplified and focused back-end for our clients.

We don’t ever use the Genesis archive template, and prefer to use the main WordPress settings and a custom home.php file for our child theme blog pages, instead of the Genesis blog template. Bill Erickson’s post here further explains the rationale for using standard WordPress template hierarchy instead of the Genesis blog template.

Removing the Blog and Archive Templates

This snippet will remove the Genesis blog and archive templates from the template chooser on the main page archive screen quick edit function and the from the individual page editor template chooser.

// Remove Blog & Archive Template From Genesis
add_filter( 'theme_page_templates', 'bourncreative_remove_page_templates' );
function bourncreative_remove_page_templates( $templates ) {
	unset( $templates['page_blog.php'] );
	unset( $templates['page_archive.php'] );
	return $templates;
}

Removing Blog Settings From Theme Options

Once the Genesis blog template is removed, there is no need for the blog page settings metabox on the theme settings page.

Leaving it may also be a source of confusion for clients once the site is delivered. This snippet will remove the settings metabox.

// Remove Meta Box From Theme Settings Page
add_action( 'genesis_admin_before_metaboxes', 'bourncreative_remove_metaboxes' );
function bourncreative_remove_metaboxes( $hook ) {
	remove_meta_box( 'genesis-theme-settings-blogpage', $hook, 'main' );
}

Both code snippets should be added to your child theme’s functions.php file. Be sure to perform a full backup first, and you must be running WordPress 3.9 for it to work!

Download code from Github

Related Posts

  • Genesis Framework Frequently Asked Questions Answered
  • Bourn Creative Named Genesis Recommended Developer
  • How To Add a Dropdown Indicator To The Genesis 2.0 Navigation Menu Automatically
  • How to Customize The Genesis 2.0 HTML5 Comment Form
  • Genesis SEO Settings Guide
  • How To Customize The WordPress Login Screen With Your Own Logo
  • WordPress Plugins For The Genesis Framework
  • The StudioPress Showcase Features Several Sites By Bourn Creative
Share on TwitterShare on FacebookShare on LinkedIn

Category: WordPress Tips & Resources Tags: Genesis Framework, WordPress Page Templates, WordPress Pages, WordPress Theme Design

Subscribe To Our Blog & Never Miss A Thing

Sign up to get new our latest posts and announcements delivered straight to your inbox. Seriously, at this point, what’s one more email?

About Brian Bourn

Chief Executive · Lead Developer

Strong with the Force, is he... an excellent CEO he makes. As Bourn Creative's fearless leader, Brian manages the business, team, and day-to-day operations. He is also lead organizer of the Sacramento WordPress Meetup group and co-organizer for WordCamp Sacramento.

Brian is a designer at heart who leads the UX design and development on all company projects, building the interactions between websites and visitors, and site managers and the WordPress admin. With hundreds of thousands of lines of code under his belt, Brian specializes advanced WordPress development and custom themeing with the Genesis Framework.

Discover What We Can Do For You

Have a project you think we'll like? Click the button below and tell us about it.

We love working with enthusiastic clients who are as passionate about their business as we are about strategy, design, and development. If that sounds like you, we should talk.

Start Your Project

Bourn Creative

  • Follow Us On Twitter
  • Like Us On Facebook

Copyright © 2023 Bourn Creative, LLC. All Rights Reserved.

Privacy | Disclaimer