Created
September 13, 2012 11:01
-
-
Save richardtape/3713588 to your computer and use it in GitHub Desktop.
WordPress Sidebars for MrQwest
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
//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