Title: Changing a Woo Commerce Theme
Last modified: August 21, 2016

---

# Changing a Woo Commerce Theme

 *  [Morningmanak](https://wordpress.org/support/users/morningmanak/)
 * (@morningmanak)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/changing-a-woo-commerce-theme/)
 * Hi all,
    I have a website I am currently developing but have hit a snag with 
   Woo Commerce. The problem is WordPress more specifically Woo Commerce is cropping
   the height of my image on my product page. I found the php where this is outlined
   and changed it but the viewing page is staying with the same cropped image of
   280 x231 rather than 280 x280. My change was made as outlined in the code below
   but the image is still cropped. I regenerated my images too but no change happened.
   here is the code:
 *     ```
       <div class="images">
       <a title="Hula Rock’er" href="http://localhost:8888/chill_out/wordpress/wp-content/uploads/2013/07/Rock_Hula.png">
       <img width="280" height="280" alt="Hula Rock’er" src="http://localhost:8888/chill_out/wordpress/wp-content/uploads/2013/07/Rock_Hula-280x231.png">
       </a>
       ```
   
 * It indicates that my image is now 280x 280 but the actual image is still 280 
   x231. Is this conversion of image size happening somewhere else in woo Commerce?
   I found the original code in product-images.php as outlined below. Here I changed
   the 231 to 280 but had to do it to the original file as my child version didn’t
   give me the numbered area to change.
 *     ```
       <div class="images">
       <?php
       	$thumb = '';
       	$width = (int) apply_filters( 'et_single_product_image_width', 280 );
       	$height = (int) apply_filters( 'et_single_product_image_height', 280 );
       	$classtext = '';
       	$titletext = get_the_title();
       	$thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, true, 'SingleProductImage' );
       	$thumb = $thumbnail["thumb"];
       ```
   
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_

Viewing 1 replies (of 1 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/changing-a-woo-commerce-theme/#post-4166258)
 * You can ask WooCommerce here:
 * [http://wordpress.org/support/plugin/woocommerce](http://wordpress.org/support/plugin/woocommerce)

Viewing 1 replies (of 1 total)

The topic ‘Changing a Woo Commerce Theme’ is closed to new replies.

## Tags

 * [woo commerce](https://wordpress.org/support/topic-tag/woo-commerce/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/changing-a-woo-commerce-theme/#post-4166258)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
