Variant Image Not Loading
-
When selecting a variant, the variant image only loads one pixel in height. We tried deactivating all plugins and changing themes. We thought maybe it was due to us not upgrading to WP 5.9, so we upgraded as well with no luck.
We tried this code as well from a previous topic, but does not do anything.
function wgs_gallery_reset () { if( is_product() ) { ?> <script> (function($){ $(document).on('ready', function(){ $(document).on('change', '.variations select', function () { setTimeout(function () { if( $('.wcgs-carousel .slick-list').outerHeight() == 1 ){ $('.wcgs-carousel').slick('refresh'); } }, 300); }); }); })(jQuery); </script> <?php } } add_action( 'wp_footer', 'wgs_gallery_reset', 99 );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Variant Image Not Loading’ is closed to new replies.