WooCommerce - Change number of thumbnail columns

lorro Dec 22nd, 2016 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // change the number of columns of thumbnails on the product page
  3.   // code goes in functions.php for your child theme
  4.   add_filter ( 'woocommerce_product_thumbnails_columns', 'custom_cols', 40 );
  5.   function custom_cols() {
  6.     return 5;
  7.   }
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