Register new sidebar for Thesis


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



Copy this code and paste it in your HTML
  1. register_sidebars(1,
  2. array(
  3. 'name' => 'Sidebar 3',
  4. 'before_widget' => '<li class="widget %2$s" id="%1$s">',
  5. 'after_widget' => '</li>',
  6. 'before_title' => '<h3>',
  7. 'after_title' => '</h3>'
  8. )
  9. );
  10. function extra_sidebar() { ?>
  11. <div id="sidebar_3" class="sidebar">
  12. <ul class="sidebar_list">
  13. <?php thesis_default_widget(3); ?>
  14. </ul>
  15. </div>
  16. <?php }
  17. add_action('thesis_hook_after_sidebars','extra_sidebar');

URL: http://diythemes.com/forums/thesis-customization/3300-custom-sidebars-different-sidebars-no-sidebars-2.html#post21587

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.