Created
November 19, 2013 18:26
-
-
Save joshuadavidnelson/7549996 to your computer and use it in GitHub Desktop.
Alternative Sidebar Page Template in Genesis. The default description for the built-in secondary sidebar doesn't really apply, so first we'll unregister that sidebar and re-register it with our preferred description. Then create a new page template, called something like template-alt-sidebar.php for instance. Now you'll see the secondary sidebar…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Place this into your functions file | |
* | |
*/ | |
unregister_sidebar( 'sidebar-alt' ); | |
genesis_register_sidebar( | |
array( | |
'id' => 'sidebar-alt', | |
'name' => 'Alternate Sidebar', | |
'description' => 'This sidebar will appear instead of the primary sidebar, when the alternate sidebar page template is used.', | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment