Advertisement
lorro

WooCommerce - Change number of thumbnail columns

Dec 22nd, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement