SHARE
TWEET

add widget functions

a guest Dec 26th, 2012 2,342 Never
  1. /**
  2.  * WordPress Widgets start right here.
  3.  */
  4. function responsive_child_widgets_init() {
  5.  
  6.         register_sidebar(array(
  7.                 'name' => __('Shop', 'responsive'),
  8.                 'description' => __('Area A - sidebar-shop.php', 'responsive'),
  9.                 'id' => 'shop-sidebar',
  10.                 'before_title' => '<div class="widget-shop"><h3>',
  11.                 'after_title' => '</h3></div>',
  12.                 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
  13.                 'after_widget' => '</div>'
  14.         ));
  15. }
  16.  
  17. add_action('widgets_init', 'responsive_child_widgets_init');
RAW Paste Data
Top