you could use the filter woocommerce_gallery_thumbnail_size, and inside that function, is when you would use the if ( is_product_category(2295) ) something like:
add_filter( 'woocommerce_gallery_thumbnail_size', function( $size ) {
if ( is_product_category(2295) ){
return 'thumbnail';
}
return $size;
} );
you can check the WooCommerce docs here
Related Posts:
- Wrong product thumbnail size
- Caption not showing with Woo commerce thumbnails
- How to change product thumbnail size in storefront theme
- Clickable product image with hover effect
- How to tell woocommerce slider to use thumbnails
- How do I change the woocommerce product gallery to show all thumbnails instead of three at a time in a carousel?
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- How to display product price of the product in loop
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- Limit users to one active subscription in WooCommerce Subscriptions? [closed]
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- Fetch Product information in WooCommerce
- New endpoint in my account gives 404 Error Woocommerce 3.6.5 and WP 5.2.2
- Add Custom CSS to Woocommerce Product Page in a specified category
- In WooCommerce filter the available Payment Methods by User Role [closed]
- Add Additional “Checkout” button next to “Add to cart” button in woocommerce product page
- wc_get_product in a none woocommerce page
- WP WPQuery, not running properly in WP CLI
- How to get all products from an order including variations via SQL query?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- How to echo billing phone number under My Account in Woocommerce? [closed]
- Unknow php file in wordpress core [closed]
- woocommerce_get_price filter hook not working for product variation price
- WooCommerce shipping – Different product different shipping? [closed]
- Remove action added through function
- Filter get_adjacent_post to follow woocommerce product category
- Run function on “Place Order” [closed]
- Stop WooCommerce from updating user/user meta after checkout
- Displaying Custom Input Value to Customer Order Details (My Account) page in Woocommerce
- Get rid of product images mobile swipe functionality from WooCommerce single product [closed]
- Add custom order meta to Order Completed email
- Hiding products with a specific tag from WooCommerce main shop page
- How to upload Woocommerce product images via API? [closed]
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- show content of a page built using yootheme builder on different page/template
- How to detect if this post is a woocommerce product?
- Set a custom field to all orders
- Force User Registration before visitng Checkout Page
- Complex price options. Am I stuck with 180 variations?
- Tax Query for custom Taxonomy field
- Improve WooCommerce checkout process [closed]
- How can I put the contents of My Account > Order into a separate page, Woocommerce
- WooCommerce Cart URL bug
- Do I need a different product type for WooCommerce [closed]
- Feed format for woocommerce [closed]
- Convert WordPress Woocomerce product to WordPress post
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- Have I got this IF Statement correct?
- WooCommerce Price Filter not working? [closed]
- How to replace WooCommerce Product Gallery Trigger icon using PHP/CSS? [closed]
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Adding Field in WooCommerce
- Woocommerce Sort by default variation price
- Add Name and SKU Main Product to Secondary Product to Cart
- WooCommerce set default product sort to product description (content) [closed]
- Add rewrite rule to make Woocommerce product category page seo friendly
- How to show the urls inside the simple product when the customer buys it?
- Custom template – query issues
- Prices showed without decimals separator on BACKEND. Weight/price not working on Wocommerce
- add the attribute value above the english product title
- How to add woocommerce products header title in woocommerce_breadcrumb hook to function.php
- Can I create categories or attribute contain more than 70,000?
- Format decimals of get_price_html
- apply_filter and add_filter conflict
- How to run code when cookie is added?
- Return product list based on current product attribute
- Getting in an exception for get product detail by id in woocommerce REST api
- Temporary access to page with URL sent to email
- How to save a Woocomerce metabox input as a metadata field
- Product related to post by title
- How do you programatically add a booking item to the cart?
- populating extra field with woocommerce categories
- Woocommerce Shop Manager Capabilities
- customize src attribute in woocommerce single product image
- Add customer name to woocommerce email-header.php heading
- woocommerce sort by dropdown styling
- Mysql query – amount spent by customer
- How to change the link of product menu from wordpress admin panel
- bulk media crop for featured images
- Users credentials and syncing from third party with WooCommerce
- Rename woocommerce button [closed]
- Create templates from attributes for categories
- How do I get slug of term by his name?
- Include customer details in woocommerce 3rd part plugin email
- dakon show vender address on checkout page
- Adding total_sales to Grouped Product within WooCommerce
- Membership website with discount on scheduled appointment
- Woocommerce: how to make only certain products shippable?
- Customer email notification upon order update in woocommerce
- acf_form() – “On Update” action [closed]
- Trying to insert a div ID link into Woocommerce shortcode Pagination
- Remove login fields from /customer-account page [closed]
- Set single product image (main image) and archive thumbnail image as different from each other in Woocommerce
- WooCommerce Simple Auction and delayed capture
- ACF Create Array of All Woocommerce Product IDs with a Checkbox ticked
- How to display customer email within the meta order data box
- Bulk delete ‘Global Attributes’ in WooCommerce via WP-CLI?
- Checkout page not loading on my ecommerce website
- WooCommerce: expiring date for products (and on sale some days before)
- How to display woo commerce shipping_method on the product page