Posted By

redconservatory on 07/19/11


Tagged

php wordpress


Versions (?)

Wordpress: create a custom sidebar / any zone for widgets


 / Published in: PHP
 

Cut-and-paste the following into your functions.php file (inside of your theme folder).

Change the Name-goes-here to whatever you want.

  1. register_sidebar(array(
  2. 'name' => 'Name-goes-here',
  3. 'description' => 'Description goes here',
  4. 'before_title' => 'HTML before the sidebar goes here',
  5. 'after_title' => 'HTML after the sidebar goes here'
  6. ));

Report this snippet  

You need to login to post a comment.