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
- Missing feature image link function
- How to display custom field in woocommerce orders in admin panel?
- Set JPEG compression for specific custom image sizes
- Issue with wp_get_attachment_image() and SVG file type
- How to change the markup WordPress inserts for post images
- Woocommerce add to simple product attribute programmatically [closed]
- Programmatically Set First Image as Featured
- WP 4.4. responsive loads normal image after loading the responsive image
- How to reduce original image quality on upload?
- In WooCommerce I need to modify the thankyou.php page [closed]
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- Set image size on media and text block with a function
- How to Acheive the custom woocommerce category template
- Remove images from get_the_excerpt
- Remove product description from product archive page
- Hide some items from Screen options in dashboard for products
- Insert width & height attributes to all images displayed on each page
- Can you use admin pages functionality on the frontend of your site
- Best way to programatically add “rel” attributes to page and post images
- Creating loop within functions.php
- Display WooCommerce subscriptions for user [closed]
- Increment price for Woocommerce Minicart [closed]
- Change woocommerce products weight varation based its product category or tags? [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- Images uploaded using media uploader are appearing upside down
- Count total number of images in post and echo results as number
- Woocommerce checkout field maxlength, make input number field only (postcode)
- change in form-checkout.php by using code in functions.php
- Set quantity of woocommerce product on page visit [closed]
- Automatically wrap multiple images in div
- Understanding and altering the structure of posted images
- Image rotation fails to regenerate custom sized thumbnail
- Publish/Update post is changing image links from file url to post url
- Featured Image Thumbnail Creation
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- Display images that are not in the content
- Remove the product category module block from the Woocommerce product page
- show first 3 thumbnails of posts in different sizes [closed]
- Getting custom image size URL in functions
- Set spesific size of featured images
- media resize/crop possibilities?
- Functions when woocommerce isn’t installed
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- What are the meta fields for an attachment?
- replace text in Sort Box
- add referrer to woo
- Add attribute only to first image of every post via functions.php
- Way to redirect all Product Sub Category to its Main category Page?
- Need to convert image url to a Base_64 data url with wordpress function..
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Function to insert missing image size attributes into img tags
- How add body_class from wp_termmeta
- Adding product to WooCommerce cart [closed]
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- Retrieve First Image Function
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- Using add_image_size in functions.php to get original uploaded file
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- Auto delete content in specific folder inside media library
- How to change images url in function.php?
- 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?
- 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
- 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
- Can You Set A Minimum Image Dimension For Resizing Images?
- Problems adding a new field to product in cart
- (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
- Woocommerce – Switching Price for Category
- add product thumbnail to checkout page only and include variation name
- Move product attributes after summary on single product page
- Which method is more correct for removing WooCommerce Extensions menu item?
- Printing medium sized image
- restrict uploaded image size and fixed image display size
- 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)
- Zip all (original) images from media gallery
- Insert menu into theme location depending on user logged in/out status
- Open image size links in a page instead of direct image link
- Function to get thumbnail img source
- Image width issue in IE [closed]
- reusing code in function and running it with loop
- image_size with respect to aspect ratios
- sort by date in users
- Is it possible to set the first image from a gallery as the product image, rather than the featured image?