Product card – number of thumbnails
-
Can anyone help me with solving the problem ?!
I asked my question earlier, but apart from an incorrect unsubscribe, instead of an answer, I received nothing.How do I change the number of thumbnails in the product card? By default, 4 is displayed.
The “woocommerce-product-gallery–columns-4” parameter sets this number per line.
How do I change it to 7?I solved in the following way:
.woocommerce #page-wrapper .product .woocommerce-product-gallery .flex-control-thumbs li { margin: 0.5%!important; width: 13.25%!important;}
But this is the wrong decision. I got a layout shift, since the images are initially loaded in their original size.
The solution suggested by your colleague did not help me, nothing has changed:
add_filter('woocommerce_product_thumbnails_columns', 'number_thumbnail_columns'); function number_thumbnail_columns() { $columns = 7; return $columns; }
The page I need help with: [log in to see the link]
- The topic ‘Product card – number of thumbnails’ is closed to new replies.