Want more features on Pastebin? Sign Up, it's FREE!
Guest

add widget functions

By: a guest on Dec 26th, 2012  |  syntax: None  |  size: 0.50 KB  |  views: 1,053  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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');
clone this paste RAW Paste Data