title: How to add a div in between product listing in WooCommerce?
body: <p>In my category page WooCommerce there is showing 20 products in listing.</p>
  
  <p>I want to increase the products listing to 40 and add a div after 20 products for add.</p>
  
  <p>Can anyone please help.</p>
  
  <p>Here is my archive-product.php code</p>
  
  <pre><code>&lt;?php
  
  if ( ! defined( 'ABSPATH' ) ) {
      exit; // Exit if accessed directly
  }
  
  get_header( 'shop' ); ?&gt;
  
  &lt;?php
      /**
       * woocommerce_before_main_content hook.
       *
       * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
       * @hooked woocommerce_breadcrumb - 20
       */
      do_action( 'woocommerce_before_main_content' );
  ?&gt;
  
      &lt;?php if ( apply_filters( 'woocommerce_show_page_title', false ) ) : ?&gt;
  
          &lt;h1 class="page-title" style="display:none;"&gt;&lt;?php woocommerce_page_title(); ?&gt;&lt;/h1&gt;
  
      &lt;?php endif; ?&gt;
  
      &lt;?php
          /**
           * woocommerce_archive_description hook.
           *
           * @hooked woocommerce_taxonomy_archive_description - 10
           * @hooked woocommerce_product_archive_description - 10
           */
          do_action( 'woocommerce_archive_description' );
      ?&gt;
  
      &lt;?php if ( have_posts() ) : ?&gt;
  
          &lt;?php
              /**
               * woocommerce_before_shop_loop hook.
               *
               * @hooked woocommerce_result_count - 20
               * @hooked woocommerce_catalog_ordering - 30
               */
              do_action( 'woocommerce_before_shop_loop' );
          ?&gt;
  
  
          &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
         &lt;div class="content-box"&gt;
         &lt;?php woocommerce_product_loop_start(); ?&gt;
  
              &lt;?php woocommerce_product_subcategories(); ?&gt;
              &lt;?php while ( have_posts() ) : the_post(); 
  
              ?&gt;
                  &lt;?php if ( is_search() ) { ?&gt;
                      &lt;?php wc_get_template_part( 'content', 'search' ); ?&gt;
                  &lt;?php }else{ ?&gt;
                  &lt;?php wc_get_template_part( 'content', 'product' ); 
              }
  
  
  
                  ?&gt;
  
  
              &lt;?php endwhile; // end of the loop. 
  
              ?&gt;
  
              &lt;?php woocommerce_product_loop_end(); ?&gt;
  
         &lt;/div&gt;&lt;/div&gt;
  
  
          &lt;?php
              /**
               * woocommerce_after_shop_loop hook.
               *
               * @hooked woocommerce_pagination - 10
               */
              do_action( 'woocommerce_after_shop_loop' );
          ?&gt;
  
      &lt;?php elseif ( ! woocommerce_product_subcategories( array( 'before' =&gt; woocommerce_product_loop_start( false ), 'after' =&gt; woocommerce_product_loop_end( false ) ) ) ) : ?&gt;
  
          &lt;?php wc_get_template( 'loop/no-products-found.php' ); ?&gt;
  
      &lt;?php endif; ?&gt;
  
  &lt;?php
      /**
       * woocommerce_after_main_content hook.
       *
       * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
       */
      do_action( 'woocommerce_after_main_content' );
  ?&gt;
  
  &lt;?php
      /**
       * woocommerce_sidebar hook.
       *
       * @hooked woocommerce_get_sidebar - 10
       */
      do_action( 'woocommerce_sidebar' );
  ?&gt;
  </code></pre>
  
  
  
  <p>Here is my content-product.php code</p>
  
  <pre><code>&lt;?php
  /**
   * The template for displaying product content within loops
   *
   * This template can be overridden by copying it to yourtheme/woocommerce/content-product.php.
   *
   * HOWEVER, on occasion WooCommerce will need to update template files and you
   * (the theme developer) will need to copy the new files to your theme to
   * maintain compatibility. We try to do this as little as possible, but it does
   * happen. When this occurs the version of the template file will be bumped and
   * the readme will list any important changes.
   *
   * @see     https://docs.woocommerce.com/document/template-structure/
   * @author  WooThemes
   * @package WooCommerce/Templates
   * @version 2.6.1
   */
  
  if ( ! defined( 'ABSPATH' ) ) {
      exit; // Exit if accessed directly
  }
  
  global $product;
  
  // Ensure visibility
  if ( empty( $product ) || ! $product-&gt;is_visible() ) {
      return;
  }
  ?&gt;
  
  &lt;?php
  /**
   * woocommerce_before_shop_loop_item hook.
   *
   * @hooked woocommerce_template_loop_product_link_open - 10
   */
  do_action( 'woocommerce_before_shop_loop_item' );
  
  /**
   * woocommerce_before_shop_loop_item_title hook.
   *
   * @hooked woocommerce_show_product_loop_sale_flash - 10
   * @hooked woocommerce_template_loop_product_thumbnail - 10
   */
  do_action( 'woocommerce_before_shop_loop_item_title' );
  
  /**
   * woocommerce_shop_loop_item_title hook.
   *
   * @hooked woocommerce_template_loop_product_title - 10
   */
  //do_action( 'woocommerce_shop_loop_item_title' );?&gt;
  
  &lt;tr &lt;?php post_class(); ?&gt;&gt;
      &lt;td class="slno"&gt;
      &lt;/td&gt;
  &lt;td&gt;&lt;?php do_action( 'woocommerce_shop_loop_item_title' ); ?&gt;&lt;/td&gt;
  &lt;td class="des"&gt;
      &lt;?php do_action( 'woocommerce_after_shop_loop_item' ); ?&gt;
  </code></pre>
  
  
      
      
  
  
      ?>