Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*This is my function.php in child theme*/
- <?php
- function the_neighbourgood_widgets_init() {
- register_sidebar( array(
- 'name' => __( 'Footer One', 'the-bootstrap' ),
- 'id' => 'footer-1',
- 'before_widget' => '<aside id="%1$s" class="widget well %2$s">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h2 class="widget-title">',
- 'after_title' => '</h2>',
- ) );
- register_sidebar( array(
- 'name' => __( 'Footer Two', 'the-bootstrap' ),
- 'id' => 'footer-2',
- 'before_widget' => '<aside id="%1$s" class="widget well %2$s">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h2 class="widget-title">',
- 'after_title' => '</h2>',
- ) );
- register_sidebar( array(
- 'name' => __( 'Footer Three', 'the-bootstrap' ),
- 'id' => 'footer-3',
- 'before_widget' => '<aside id="%1$s" class="widget well %2$s">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h2 class="widget-title">',
- 'after_title' => '</h2>',
- ) );
- }
- add_action( 'widgets_init', 'the_neighbourgood_widgets_init' );
- ?>
- /*This is in footer.php */
- <div class="footer-widgets footer-widgets-1"><?php dynamic_sidebar( 'footer-1' ); ?></div>
- <div class="footer-widgets footer-widgets-2"><?php dynamic_sidebar( 'footer-2' ); ?></div>
- <div class="footer-widgets footer-widgets-3"><?php dynamic_sidebar( 'footer-3' ); ?></div>
- <?php tha_footer_bottom(); ?>
- </footer><!-- #colophon -->
- <?php tha_footer_after(); ?>
- </div><!-- #page -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement