• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Genesis Snippets

A reference for Genesis theme developers

  • Home
  • Archives
  • Search Genesis Snippets

Remove unused page layouts

March 20, 2012 By David Wang

Genesis comes with 6 page layouts, which you may not need for every site. Here’s how to remove them.

/** Remove Unused Page Layouts */
// Un-comment the page layouts you wish to remove
//genesis_unregister_layout( 'full-width-content' );
//genesis_unregister_layout( 'content-sidebar' );	
genesis_unregister_layout( 'sidebar-content' );
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );
genesis_unregister_layout( 'sidebar-content-sidebar' );

Credit: Bill Erickson

Filed Under: Genesis Tagged With: page layouts, theme options

Reader Interactions

Comments

  1. Kyra says

    July 22, 2014 at 1:06 am

    What would be the purpose of removing unused page layouts?

    • David Wang says

      July 22, 2014 at 7:25 am

      Hi Kyra. Well, if you are building a custom theme and it only comes with 2-column layouts you don’t want the user to switch to the 3-column layouts. So you could use this snippet to avoid that. Cheers

Primary Sidebar

Brought to you by ClickWP
Buy the Genesis Theme Framework

Who’s behind this?

Hi! I'm David and I'm a big Genesis fan. I've been using it in all my projects and have found it to be super powerful.

I started this site to keep track of all the snippets that I've been using in my projects and so that it's easy for me to find them again instead of digging through my old project files.

Help support this site by buying Genesis with our affiliate links. Thanks!

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 173 other subscribers

Browse Snippets

branding cache comments css custom post type doctype entry footer entry header favicon featured image genesis_custom_loop images internet explorer jetpack loop media menu metabox minify navigation oembed page layouts performance plugin integration post thumbnail shortcode sidebars theme options widget areas widgets WooCommerce WordPress
Everything you need to support your online business
Take WordPress further with the Genesis framework

Copyright © 2021 · Genesis Sample On Genesis Framework · WordPress · Log in