Created
October 23, 2020 16:11
-
-
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'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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