Skip to content

Instantly share code, notes, and snippets.

@soggybag
Last active November 28, 2015 00:21
Show Gist options
  • Save soggybag/3147ab51c26229c4e480 to your computer and use it in GitHub Desktop.
Save soggybag/3147ab51c26229c4e480 to your computer and use it in GitHub Desktop.
Wordpress register sidebar/widget
// 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