title: editing woocommerce template files for custom layout
body: <p>I am trying to add some customization to a Wordpress theme using the woocommerce plugin. I am trying to stylize the shop page to have a list of categories across the top of the products or along the left hand side. When you enable the category option from the catalog page in the woocommerce admin settings it utilizes the content_product_cat2.php template file to display product category thumbnails within the woocommerce product loop. I have moved that php file and have begun editing it and getting results. I have removed the thumbnails but I cannot get the titles out of the grid format or outside the loop. Im open to adding some hooks to my functions.php but I didnt see any hooks in the woocommerce hook reference that looked like they would do. Maybe a combination of editing this template and using a hook to place it before the loop. Im not sure thats why im posting. <a href="http://www.primroseandcompany.com/shop/" rel="nofollow noreferrer">Here is a link to the page.</a> that im using it on and here are the contents of the php file:</p>
  <pre><code>&lt;?php
  /**
   * The template for displaying product category thumbnails within loops.
   *
   * Override this template by copying it to yourtheme/woocommerce/content-product_cat.php
   *
   * @author      WooThemes
   * @package     WooCommerce/Templates
   * @version     1.6.4
   */
  
  
  
  
  global $woocommerce_loop;
  
  // Custom Edits
  
  if ( is_shop() &amp;&amp; in_array( $category-&gt;slug, array( 'fakeie' ) ) ) {
  return;
  }
  
  
  // Store loop count we're currently on
  if ( empty( $woocommerce_loop['loop'] ) )
  $woocommerce_loop['loop'] = 0;
  
  // Store column count for displaying the grid
  if ( empty( $woocommerce_loop['columns'] ) )
  $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
  
  // Increase loop count
  $woocommerce_loop['loop']++;
  ?&gt;
  &lt;li class=&quot;product &lt;?php
  if ( $woocommerce_loop['loop'] % $woocommerce_loop['columns'] == 0 )
      echo 'last';
  elseif ( ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] == 0 )
      echo 'first';
  ?&gt;&quot;&gt;
  
  &lt;?php do_action( 'woocommerce_before_subcategory', $category ); ?&gt;
  
  &lt;a href=&quot;&lt;?php echo get_term_link( $category-&gt;slug, 'product_cat' ); ?&gt;&quot;&gt;
  
      
  
      &lt;h3 style=&quot;float:left;&quot;&gt;
          &lt;?php echo $category-&gt;name; ?&gt;
          &lt;?php if ( $category-&gt;count &gt; 0 ) : ?&gt;
              &lt;mark class=&quot;count&quot;&gt;(&lt;?php echo $category-&gt;count; ?&gt;)&lt;/mark&gt;
          &lt;?php endif; ?&gt;
      &lt;/h3&gt;
  
      &lt;?php
          /**
           * woocommerce_after_subcategory_title hook
           */
          do_action( 'woocommerce_after_subcategory_title', $category );
      ?&gt;
  
  &lt;/a&gt;
  
  &lt;?php do_action( 'woocommerce_after_subcategory', $category ); ?&gt;
  
  &lt;/li&gt;
  </code></pre>
  <p>Thanks Guys...I know someone will have experience with this.</p>
  <p>EDIT- Ok so what I realized is that editing the content_product_cat.php file is probably not the best way to go about it. Jay mentions below that it is better to edit the content_product.php file. While I initially thought this also to be a good solution what I realized is that it wont accomplish what im looking to do. Editing the content_product.php will only make edits within the loop and I need my categories to display before the loop so that they dont fall inot the grid format of the loop.....any new idea's???</p>