Posted By

almendro on 06/13/13


Tagged

wordpress wp twentytwelve sidebar-footer


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

almendro


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


 / Published in: PHP
 

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

  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  

You need to login to post a comment.