Wordpress Register Sidebar Widgets


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.