Skip to content

Instantly share code, notes, and snippets.

@authentikHQ
Created October 29, 2018 13:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save authentikHQ/20fc6effeabc93799356d84a322b75c5 to your computer and use it in GitHub Desktop.
Remove a site 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