Untitled
unknown
plain_text
a month ago
616 B
4
Indexable
add_action('wp_head', function(){ ?> <script> jQuery(document).ready(function(){ jQuery('body.theme-porto').on('click', '.quantity button.plus', function(e){ e.preventDefault(); e.stopPropagation(); let input = jQuery(this).parent().find('input'); input[0].stepUp(1); jQuery(input).trigger('input'); }); jQuery('body.theme-porto').on('click', '.quantity button.minus', function(e){ e.preventDefault(); e.stopPropagation(); let input = jQuery(this).parent().find('input'); input[0].stepDown(1); jQuery(input).trigger('input'); }); }); </script> <?php });
Editor is loading...
Leave a Comment