title: How do i add a widget that will only appear on WooCommerce shop page
body: <p>I want to add a widget that will only appear on the shop page, but I couldn't get any results.</p>
  <p><code>functions.php</code></p>
  <pre><code>function kucuksun_widgets_init() {
      register_sidebar(
          array(
              'name'          =&gt; esc_html__( 'Sidebar', 'kucuksun' ),
              'id'            =&gt; 'sidebar-1',
              'description'   =&gt; esc_html__( 'Add widgets here.', 'kucuksun' ),
              'before_widget' =&gt; '&lt;section id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;',
              'after_widget'  =&gt; '&lt;/section&gt;',
              'before_title'  =&gt; '&lt;h2 class=&quot;widget-title&quot;&gt;',
              'after_title'   =&gt; '&lt;/h2&gt;',
          ),
          register_sidebar(
          array(
              'name'          =&gt; esc_html__( 'Shop', 'kucuksun' ),
              'id'            =&gt; 'shop',
              'description'   =&gt; esc_html__( 'Add widgets here.', 'kucuksun' ),
              'before_widget' =&gt; '&lt;section id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;',
              'after_widget'  =&gt; '&lt;/section&gt;',
              'before_title'  =&gt; '&lt;h2 class=&quot;widget-title&quot;&gt;',
              'after_title'   =&gt; '&lt;/h2&gt;',
          )
         )
      );
  }
  add_action( 'widgets_init', 'kucuksun_widgets_init' );
  </code></pre>
  <p>Following my code: <code>sidebar.php</code></p>
  <pre><code>&lt;?php
  
  if ( ! is_active_sidebar( 'sidebar-1' ) ) {
      return;
  }
  ?&gt;
  
  &lt;aside id=&quot;secondary&quot; class=&quot;widget-area&quot;&gt;
      &lt;?php dynamic_sidebar( 'sidebar-1' ); ?&gt;
  &lt;/aside&gt;
  </code></pre>
  <p>I'm not exactly sure but I need to print it in
  <code>woocommerce.php</code> <code>dynamic_sidebar( 'shop' );</code></p>