/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*--------------------------------------------------*/ /* register sidebars for widgetized footer */ /*--------------------------------------------------*/ if (function_exists('register_sidebar')) { $sidebars = array(1, 2, 3); foreach($sidebars as $number) { register_sidebar(array( 'name' => 'Footer ' . $number, 'id' => 'footer-' . $number, 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h3>', 'after_title' => '</h3>' )); } } /*--------------------------------------------------*/ /* set up footer widgets */ /*--------------------------------------------------*/ function widgetized_footer() { ?> <div id="footer_setup"> <div class="footer_items"> <?php endif; ?> </div> <div class="footer_items"> <?php endif; ?> </div> <div class="footer_items_wide"> <?php endif; ?> </div> </div> <?php } add_action('thesis_hook_footer','widgetized_footer');