Last active
November 28, 2015 00:21
-
-
Save soggybag/3147ab51c26229c4e480 to your computer and use it in GitHub Desktop.
Wordpress register sidebar/widget
This file contains hidden or 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
// Register a dynamic sidebar | |
// https://codex.wordpress.org/Function_Reference/register_sidebar | |
// The code below goes into functions.php | |
register_sidebar( array( | |
"name"=>"Footer Column 1", | |
"id"=>"footer-col-1", | |
"description"=>"Footer Column 1" | |
)); | |
// Add this code to your theme to display this widget: | |
<?php dynamic_sidebar( "Footer Column 1" ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment