Home Forums WoodMart support forum WPML variation image video issue

WPML variation image video issue

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #539110

    John
    Participant

    Hi,

    We are facing an issue with the product video and WPML on our website. Our product is variable and we have set the video on the future image. Additionally, we have set an image for every variation.

    However, the issue we are encountering is that when we select a variation, the video continues to play and it does not switch to the image that we have set for that variation.

    Also, we have installed WPML on the site, but we have not yet translated anything. We plan to introduce another language on the website in the future.

    Please let me know if you understand the issue, and if there is anything else you need from me. I have attached the website login credentials, so you can check it out yourself.

    Thank you for your time and assistance.

    PS. Check the video attached in the private content.

    #539624

    Luke Nielsen
    Member

    Hello,

    Thank you for the video. May I disable plugins and enable the parent theme for testing? You would better make the full backup of your site.

    Looking forward to hearing back from you!

    Kind Regards

    #539630

    John
    Participant

    Hello,
    Feel free to do everything you need. It’s a staging website.
    Thank you!

    #540132

    Luke Nielsen
    Member

    Hello,

    I sent it to the developer’s team and they are considering solution for that.

    I will get an answer soon and let you know

    Kind Regards

    #540297

    Luke Nielsen
    Member

    Hello,

    Paste the below code into the functions.php file in your child theme:

    add_action('woodmart_single_product_gallery_image_class', function($class) {
    	if (false === strpos($class, 'wp-post-image')) {
    		$class .= ' wp-post-image';
    	}
    
    	return $class;
    });

    Then clear the cache and recheck the issue.

    Kind Regards

    #540310

    John
    Participant

    Hello,
    I have just tested and it’s working properly.
    Thank you very much for your support!

    • This reply was modified 1 year, 10 months ago by John.
    #540312

    Luke Nielsen
    Member

    Hello,

    You are welcome! In case you need any additional help, I’d be more than happy to assist you.

    Have a good day!

    Kind Regards

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘WPML variation image video issue’ is closed to new replies.