Advertisement
Guest User

Untitled

a guest
Nov 20th, 2012
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*This is my function.php in child theme*/
  2. <?php
  3. function the_neighbourgood_widgets_init() {
  4.  
  5. register_sidebar( array(
  6. 'name' => __( 'Footer One', 'the-bootstrap' ),
  7. 'id' => 'footer-1',
  8. 'before_widget' => '<aside id="%1$s" class="widget well %2$s">',
  9. 'after_widget' => '</aside>',
  10. 'before_title' => '<h2 class="widget-title">',
  11. 'after_title' => '</h2>',
  12. ) );
  13.  
  14. register_sidebar( array(
  15. 'name' => __( 'Footer Two', 'the-bootstrap' ),
  16. 'id' => 'footer-2',
  17. 'before_widget' => '<aside id="%1$s" class="widget well %2$s">',
  18. 'after_widget' => '</aside>',
  19. 'before_title' => '<h2 class="widget-title">',
  20. 'after_title' => '</h2>',
  21. ) );
  22.  
  23. register_sidebar( array(
  24. 'name' => __( 'Footer Three', 'the-bootstrap' ),
  25. 'id' => 'footer-3',
  26. 'before_widget' => '<aside id="%1$s" class="widget well %2$s">',
  27. 'after_widget' => '</aside>',
  28. 'before_title' => '<h2 class="widget-title">',
  29. 'after_title' => '</h2>',
  30. ) );
  31. }
  32. add_action( 'widgets_init', 'the_neighbourgood_widgets_init' );
  33. ?>
  34.  
  35. /*This is in footer.php */
  36.  
  37. <div class="footer-widgets footer-widgets-1"><?php dynamic_sidebar( 'footer-1' ); ?></div>
  38. <div class="footer-widgets footer-widgets-2"><?php dynamic_sidebar( 'footer-2' ); ?></div>
  39. <div class="footer-widgets footer-widgets-3"><?php dynamic_sidebar( 'footer-3' ); ?></div>
  40.  
  41. <?php tha_footer_bottom(); ?>
  42. </footer><!-- #colophon -->
  43. <?php tha_footer_after(); ?>
  44. </div><!-- #page -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement