Viewing 1 replies (of 1 total)
  • I’m not sure how to edit a widget so that it can be used multiple times. But here’s a little work around that worked for me…

    In functions.php I registered a dynamic sidebar specifically for holding the single-use widget. Then I called that sidebar on each page I wanted it to appear.

    Sample of my code below.

    functions.php:

    // Register Sidebars
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Cart Sidebar',
    'before_widget' => '<div class="cart-widget">',
    'after_widget' => '</div>',
    'before_title' => '<h4>',
    'after_title' => '</h4>',
    ));
    
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Blog Sidebar',
    'before_widget' => '<div class="widget">',
    'after_widget' => '</div>',
    'before_title' => '<h4>',
    'after_title' => '</h4>',
    ));

    index.php:

    <div id="sidebar">
      <?php dynamic_sidebar('Cart Sidebar'); ?>
      <?php dynamic_sidebar('Blog Sidebar'); ?>
    </div>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Custom Etsy Widget] Multiple sidebars?’ is closed to new replies.