Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created June 6, 2012 10:35
Show Gist options
  • Save jameskoster/2881216 to your computer and use it in GitHub Desktop.
Save jameskoster/2881216 to your computer and use it in GitHub Desktop.
WooCommerce - Change number of thumbnails per row in product galleries
add_filter ( 'woocommerce_product_thumbnails_columns', 'xx_thumb_cols' );
function xx_thumb_cols() {
return 4; // .last class applied to every 4th thumbnail
}
@jacopofly
Copy link

It does not work, you have other suggestions?
Thanks so much
j

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment