Skip to content

Instantly share code, notes, and snippets.

@jrick1229
Created October 23, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrick1229/d8ec49be4b981da991a0cff70d9de1ee to your computer and use it in GitHub Desktop.
Save jrick1229/d8ec49be4b981da991a0cff70d9de1ee to your computer and use it in GitHub Desktop.
Change the amount of thumbnail columns are shown in the product gallery from '4' to '5'
<?php
add_filter('woocommerce_product_thumbnails_columns', 'number_thumbnail_columns');
function number_thumbnail_columns() {
$columns = 5;
return $columns;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment