daily pastebin goal
78%
SHARE
TWEET

WooCommerce - Change number of thumbnail columns

lorro Dec 22nd, 2016 61 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
Top