Skip to content

Instantly share code, notes, and snippets.

@richardtape
Created September 13, 2012 11:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardtape/3713588 to your computer and use it in GitHub Desktop.
Save richardtape/3713588 to your computer and use it in GitHub Desktop.
WordPress Sidebars for MrQwest
//In your functions.php (or wherever)
register_sidebar(
array(
'id' => 'primary',
'name' => __( 'Primary', 'your_theme' ),
'description' => __( 'The primary sidebar used on pages and posts. By default on the Right Hand Side', 'your_theme' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widget-title"><span class="title">',
'after_title' => '</span></h4>'
)
);
//In your template file
<?php dynamic_sidebar( 'primary' ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment