WP twentytwelve theme width sidebar footer again. Part 3: FUNCTIONS.PHP


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

How to put sidebars footer on twenty twelve theme again. Part 3: Insert this register_sidebar at the end of the function twentytwelve_widgets_init() into functions.php


Copy this code and paste it in your HTML
  1. register_sidebar( array(
  2. 'name' => __( 'Footer Area One', 'twentytwelve' ),
  3. 'id' => 'sidebar-4',
  4. 'description' => __( 'An optional widget area for your site footer', 'twentytwelve' ),
  5. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  6. 'after_widget' => '</aside>',
  7. 'before_title' => '<h3 class="widget-title">',
  8. 'after_title' => '</h3>',
  9. ) );
  10. register_sidebar( array(
  11. 'name' => __( 'Footer Area Two', 'twentytwelve' ),
  12. 'id' => 'sidebar-5',
  13. 'description' => __( 'An optional widget area for your site footer', 'twentytwelve' ),
  14. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  15. 'after_widget' => '</aside>',
  16. 'before_title' => '<h3 class="widget-title">',
  17. 'after_title' => '</h3>',
  18. ) );
  19. register_sidebar( array(
  20. 'name' => __( 'Footer Area Three', 'twentytwelve' ),
  21. 'id' => 'sidebar-6',
  22. 'description' => __( 'An optional widget area for your site footer', 'twentytwelve' ),
  23. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  24. 'after_widget' => '</aside>',
  25. 'before_title' => '<h3 class="widget-title">',
  26. 'after_title' => '</h3>',
  27. ) );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.