Skip to content

Instantly share code, notes, and snippets.

@erickolivares
Last active November 24, 2015 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickolivares/92ddccda3a8df0849c6d to your computer and use it in GitHub Desktop.
Save erickolivares/92ddccda3a8df0849c6d to your computer and use it in GitHub Desktop.
WP registering new sidebar - belongs this in functions.php
register_sidebar( array(
'name' => __( 'Resources Sidebar', 'rinzler' ),
'id' => 'resources-sidebar',
'description' => __( 'This is the sidebar that will appear for your blog posts', 'rinzler' ),
'before_widget' => '<div class="block">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment