Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created September 6, 2016 21:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidperezgar/332875386d7d37168c7bb47bbccac1e6 to your computer and use it in GitHub Desktop.
Save davidperezgar/332875386d7d37168c7bb47bbccac1e6 to your computer and use it in GitHub Desktop.
Remove a layout with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Remove content/sidebar layout
genesis_unregister_layout( 'content-sidebar' );
//* Remove sidebar/content layout
genesis_unregister_layout( 'sidebar-content' );
//* Remove content/sidebar/sidebar layout
genesis_unregister_layout( 'content-sidebar-sidebar' );
//* Remove sidebar/sidebar/content layout
genesis_unregister_layout( 'sidebar-sidebar-content' );
//* Remove sidebar/content/sidebar layout
genesis_unregister_layout( 'sidebar-content-sidebar' );
//* Remove full-width content layout
genesis_unregister_layout( 'full-width-content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment