Posted By

xavsio4 on 07/06/11


Tagged

wordpress functions


Versions (?)

Wordpress Register Sidebar Widgets


 / Published in: PHP
 

<?php> <!–Default>

<?php>

Note that sidebar.php must not always content the sidebar

  1. if ( function_exists('register_sidebar') )
  2. register_sidebar(array('name'=>'MiddleSidebar',
  3. 'before_widget' => '<li class="widget">',
  4. 'after_widget' => '</li>',
  5. 'before_title' => '<h2 class="widgettitle">',
  6. 'after_title' => '</h3>',
  7. ));
  8. register_sidebar(array('name'=>'FooterSidebar',
  9. 'before_widget' => '<li class="widget">',
  10. 'after_widget' => '</li>',
  11. 'before_title' => '<h2 class="widgettitle">',
  12. 'after_title' => '</h3>',
  13. ));

Report this snippet  

You need to login to post a comment.