I have just achieved the effect by my own. I will post it here in case others find this thread:
jQuery(document).on('click','.thumbnails .zoom', function(){
var photo_fullsize = jQuery(this).find('img').attr('src').replace('-100x132','');
jQuery('.woocommerce-main-image img').attr('src', photo_fullsize);
return false;
});
.replace(‘-100×132’) eliminates the size from url of the image to return the full image and not the thumbnail. Replace it with your own thumbnails sizes.
My solution is based on:
Related Posts:
- How to Delete All regenerated thumbnails but keep the original ones?
- Using Advanced Custom Fields with WordPress and Lightbox
- How to link to YouTube videos with thumbnails?
- Add Image to the RSS plugin reader from another RSS [closed]
- Regenerate thumnails does not create any files
- Add padding while generating thumbnail
- Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite
- Woocommerce: Set thumbnail detail (clipping area)
- Thumbnail image doesn’t show up in Shortcode output
- Display Multiple Photos as Featured Image when mouse moves on to it post
- Cannot display wordpress thumbnail
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- How to install ffmpeg extension for php 5.6.25 for wp video posts plugin?
- resizes images on the fly
- Multiple thumbnails and one gallery
- Thumbnails have stopped generating correctly
- How to add multiple versions of the same featured image for SEO reasons?
- Thumbnails and Lightbox
- How can I server scaled images?
- Trying to use Advanced Custom Fields with custom image sizes
- What is the best way to change share image for social networks? [closed]
- Disable plugin / plugin action via theme
- How to eliminate weird 404 errors in wp-admin?
- How would you require and automatically download dependent plugins?
- Coding Challenge – JavaScript Easter Egg
- Run function on plugin upgrade
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- How to set value/term of a Woocommerce attribute text field in admin panel?
- Disable plugin on Specific Page of Admin
- How to add nofollow on all external links without plugin?
- How does WooCommerce display a custom comment_type in Comment Admin?
- Over write plugin templates
- Social sharing post’s shortlink instead of permalink
- Get data from plugin People list in author template
- How to limit WordPress pages during updates?
- ajax front-end increment views on click
- WordPress converting my code
- Plugin to list active plugins across networked sites
- How to make a custom field as an editor in wordpress?
- Gutenberg: How to refresh ServerSideRender with useSelect and AsyncModeProvider true?
- Adding custom code to a WordPress site
- Output array into one table cell
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- get_post_type() and WP_QUERY issue
- Python with wordpress plugin
- How to find wordpress db schema changes when upgrading from 4.9 to 5.2
- WordPress Post Visibility Options for Frontend
- How do I go back to wordpress 3.5
- What are the Best Practises When Using AJAX in Plugin Development?
- Show Sitename on Yoast SEO Title tag [closed]
- Plugins in WP_Options but not Active
- Create a single website with 3 theme options in wordpress
- Check if user is on backend page
- Background Music WP [closed]
- WordPress failing to update plugins
- Image tooltip enable/disable
- Error trying to update plugins
- I can’t get blog posts into ‘featured areas’ on homepage
- do_action in conditional
- Show WordPress Plugin Menu(Admin) To Editor
- How many MySQL queries per visit I should normally have?
- Want to modify a Plugin – Tweetily – Can I make it tweet a Custom Field instead of Post Title?
- Multisite Plugin – Access options (wp_options) on child sites
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- Displaying the facebook profile picture in the WP-FB AutoConnect widget?
- how does ‘init’ /’parse_request’ hook work for wordpress?
- Service status plugin
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- Why the internal link get converted into a comment?
- How to add gallery to post and make seperate album page with gallery link to post?
- Share login credential with QR code
- Shortcode do not return the right data in post
- Display pagination in reservation Plugin and and Print table as pdf
- Undeletable column in Posts
- Search in WordPress
- Content disappears when searching with Search & Filter plugin
- Fatal error: Class ‘RDTheme’ not found
- Avoid WordPress header bar when form submission using admin_post in the frontend
- How to fix shifting header after installing speed / cache plugins?
- PHP message: WordPress database error Deadlock found when trying to get lock
- Field salespeople task management
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- Can’t manage plugins anymore
- plugins break after moving wp-content folder
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- Change localization only for plugin
- How to get author developer link on plugin page
- wp_schedule_event need to deactivate plugin changing recurrance
- Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
- ajax request not returning the result
- adding image in the header of my dev widget
- passing ‘&’ in return function of add_filter
- Is there going to an issue running different features of WP site in different subdomains?
- Session alternative for plugins (due to caching)
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Plugin with custom domain
- woocommerce retriving category name as div class?
- Duplicating wordpress install issue
- Woocommerce add product variations block to my custom template
- ShipHub for WordPress