Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created October 18, 2016 06:49
Show Gist options
  • Save davidperezgar/bcb510ca46f6baebefc8bf2e602580ca to your computer and use it in GitHub Desktop.
Save davidperezgar/bcb510ca46f6baebefc8bf2e602580ca to your computer and use it in GitHub Desktop.
Set a default layout with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Set content/sidebar as the default layout
genesis_set_default_layout( 'content-sidebar' );
//* Set sidebar/content as the default layout
genesis_set_default_layout( 'sidebar-content' );
//* Set content/sidebar/sidebar as the default layout
genesis_set_default_layout( 'content-sidebar-sidebar' );
//* Set sidebar/sidebar/content as the default layout
genesis_set_default_layout( 'sidebar-sidebar-content' );
//* Set sidebar/content/sidebar as the default layout
genesis_set_default_layout( 'sidebar-content-sidebar' );
//* Set full-width content as the default layout
genesis_set_default_layout( 'full-width-content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment