Reply 331875 to: Image Hover Effect “SWAP” stopped working after Woocommerce Upgrade to 6.8

Avatar: Rose Tyler
Rose Tyler
Support staff
August 16, 2022 at 13:45

Hello,

You may simply copy xstore/framework/theme-functions.php from your staging and upload it on your production (of course if you have the same theme versions/core versions)

Otherwise, you may open xstore/framework/theme-functions.php and find next lines -> https://prnt.sc/rVElJ8F98qu7
and add the highlighted in the middle square

Position of placement -> https://prnt.sc/eOYzK-IvQizg

Code that was added:

if ( !$image ) {
   $image = wp_get_attachment_image( $attach_id, $size, false, array('class' => $class) );
}

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.