Title: Opens wrong image
Last modified: August 10, 2018

---

# Opens wrong image

 *  [wonder32](https://wordpress.org/support/users/wonder32/)
 * (@wonder32)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/opens-wrong-image/)
 * Love the plugin, small issue:
 * If product has video, when opening image 2 displays image 3.
 * If you click the woocommerce ‘magnifying glass’ on image 2 it opens image 3
 * [https://www.spiba.nl/product/airtec-slagmoersleutel-en-lorrie/](https://www.spiba.nl/product/airtec-slagmoersleutel-en-lorrie/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fopens-wrong-image%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [wonder32](https://wordpress.org/support/users/wonder32/)
 * (@wonder32)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/opens-wrong-image/#post-10579160)
 * If fixed it by adjusting the woocommerce single product script
    \woocommerce\
   assets\js\frontend\single-product.js
 * changing
 *     ```
       var options = $.extend( {
       	index: $(clicked ).index()
       }, wc_single_product_params.photoswipe_options );
       ```
   
 * in
 *     ```
       if ($(".ywcfav_has_featured")[0]){
       	var nfcIndex = $( clicked ).index()-1;}else{var nfcIndex=$(clicked ).index();
       }
   
       var options = $.extend( {
       	index: nfcIndex
       }, wc_single_product_params.photoswipe_options );
       ```
   
 * But i will lose this on woocommerce update
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/opens-wrong-image/#post-10586004)
 * Hi, thank you for your feedback. We are able to replicate the issue
    so we will
   work on it and we will release a plugin update as soon as possible
 * Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Opens wrong image’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-featured-video/assets/icon.svg?rev=3059859)
 * [YITH WooCommerce Featured Video](https://wordpress.org/plugins/yith-woocommerce-featured-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-featured-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-featured-video/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-featured-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-featured-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-featured-video/reviews/)

## Tags

 * [wrong image](https://wordpress.org/support/topic-tag/wrong-image/)

 * 2 replies
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/opens-wrong-image/#post-10586004)
 * Status: not resolved