WooCommerce - Add text after shop and category loop

lorro Nov 3rd, 2016 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // add some text after the loop on the shop and category pages
  3. // snippet goes in functions.php for your child theme
  5. add_action( 'woocommerce_after_main_content', 'add_my_text', 20 );
  6. function add_my_text() {
  7.   print '<p>This is my extra text.</p>';
  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