This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic setup and LAMP install for Ubuntu 12.04 LTS VM + Server | |
sudo apt-get update | |
sudo apt-get install -y vim | |
sudo apt-get install -y curl | |
sudo apt-get install -y build-essential | |
# The steps below are for php 5.5 instead of 5.3 | |
sudo apt-get install -y python-software-properties | |
sudo add-apt-repository ppa:ondrej/php5 | |
sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This snippet removes the action that inserts thumbnails to products in the loop | |
* and re-adds the function customized with our wrapper in it. | |
* It applies to all archives with products. | |
* Original gist here: https://gist.github.com/krogsgard/3015581 | |
* | |
*/ | |
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); |