WooCommerce - Add text after product image

lorro Oct 23rd, 2015 (edited) 140 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // add text after product image
  3.   // code goes in functions.php for your child theme
  4.   add_action('woocommerce_single_product_image_html', 'add_text');
  5.   function add_text($html) {
  6.     $html .= '<span class="add_text">My additional text.</span>'.PHP_EOL;
  7.     return $html;
  8.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand