You have to use single_product_large_thumbnail_size
filter for Single Product page.
something like:
function custom_product_large_thumbnail_size() {
return 'gallery';
}
add_filter('single_product_large_thumbnail_size', 'custom_product_large_thumbnail_size');
Related Posts:
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- (Woocommerce) Order by price when entering specific category
- srcset and custom field get_post_meta and wp_get_attachment_url
- Limit dimensions of “Full” size images
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- How to hide image-url if no attachment?
- Create custom function for hero image
- What are the meta fields for an attachment?
- replace text in Sort Box
- add_filter to specific WooCommerce Category
- Woocommerce checkout field
- add referrer to woo
- How to properly set custom logo size?
- Add attribute only to first image of every post via functions.php
- Way to redirect all Product Sub Category to its Main category Page?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- Create a Woocommerce product widget with category filter
- Delay a function, any function!
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- How to add a new image size and apply it to posts only?
- Function to insert missing image size attributes into img tags
- Image Crop Not Working
- How add body_class from wp_termmeta
- Adding product to WooCommerce cart [closed]
- Change WooCommerce add_to_cart Button Text?
- WooCommerce -> wc_enqueue_js not working [closed]
- Problem in using Customizer
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- Retrieve First Image Function
- Custom Image Size in Insert Media
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- Need To Resize Images Exactly Without Losing Image Details
- Woocommerce Variable Product Dropdown for Custom Shop Template
- Custom image sizes showing in Classic Editor only when upladed directly to post
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- How to hide WooCommerce product title and short description to non logged in users?
- how can I change all wordpress media file url to custom cdn url?
- Different image using srcset function
- How to add custom metakey to shop_order page’s searching function?
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- localize_script but data changes dependent on product ID
- Auto delete content in specific folder inside media library
- How to change images url in function.php?
- Changing the HTML of notices in WooCommerce [closed]
- Change class woocommerce on function.php
- Show ‘Add to Cart’ on Out of Stock products
- Hide ‘add to cart’ when certain value in dropdown is selected
- How to update an image attachment’s alt text from a custom field when saving a post?
- removing description tabs – single product page – breaks footer
- Link product attribute value to a URL – woocommerce
- Class parameter in get_avatar args doesn’t get added to output
- large image size of 1440×1440 not pulling 2x of 2880×2880 image
- Remove text after a dot and a colon in Woocommerce product title
- When are the user meta fields created in the database? Admin vs Woo API REST
- price of product can’t return when get data of product in functions.php
- Woocommerce product price change
- Help with with my function for wordpress
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- is_product_category(‘Services’) not working
- Can You Set A Minimum Image Dimension For Resizing Images?
- Problems adding a new field to product in cart
- blank page with wp_get_attachment
- Parent category as WOOCommerce Categories widget title
- Woocommerce Display Discount On cart
- Problem with my footer after changing WooCommerce Products Sorting [closed]
- (Divi): How to make WordPress load images of specific size for Blurb modules on given page with a funciton?
- Images with overlay
- Variable function names
- Override plugin function to show invoices even if not logged in
- Woocommerce – Switching Price for Category
- how can I change the read more link destinations and direct all to the same page?
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- add product thumbnail to checkout page only and include variation name
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- Featured image on archive page based on post type
- Execute jQuery with custom event listener after successfully add an item to the cart
- Move product attributes after summary on single product page
- Which method is more correct for removing WooCommerce Extensions menu item?
- Printing medium sized image
- Show number of sold products but be first for less than 2
- restrict uploaded image size and fixed image display size
- Why am I losing image quality on my site?
- Replace image attributes for lazyload plugin on image elements with specific class
- function syntax is off,
- Using Switch Statement to Change Image According to Last Digit of Topic ID
- Disable links to images only if link is an image
- Restricted images only for logged user. (hidden url)