Fix tooltip in shopify infinite options

In theme.liquid add the following after the </head> tag:

<!-- Infinite Options by ShopPad -->
<script>
     // Create "window.Shoppad.apps.infiniteoptions" object if it doesn't already exist
     "Shoppad.apps.infiniteoptions".split(".").reduce(function(o, x) { if (!o[x]) {o[x] ={};} return o[x] }, window);
     // Define beforeReady callback
     window.Shoppad.apps.infiniteoptions.beforeReady = function(subscribe) {
          subscribe('appLoad', function(event) {
               // Remove title attribute from spb-tooltip
               Shoppad.$( '.spb-tooltip' ).each(function() {
                    Shoppad.$( this ).removeAttr('title');
               });
          });
     };
</script>
Posted in Uncategorized.

Leave a Reply

Your email address will not be published.