Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created February 2, 2026 11:47
Show Gist options
  • Select an option

  • Save xlplugins/d6430e43a29af4e92ab72ac30609f221 to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/d6430e43a29af4e92ab72ac30609f221 to your computer and use it in GitHub Desktop.
Elesse theme conflict with fkcart
add_action( 'wp_footer', function () {
?>
<script>
(function($) {
$(document.body).on('fkcart_cart_quick_view_open', function() {
setTimeout(function() {
var $form = $('.fkcart-drawer-content .variations_form');
if ($form.length && typeof $.fn.nasa_attr_ux_variation_form === 'function') {
$form.removeClass('nasa-attr-ux-form').addClass('nasa-attr-ux-form');
$form.nasa_attr_ux_variation_form();
if (typeof nasa_refresh_attrs === 'function') {
nasa_refresh_attrs($, $form);
}
}
}, 300);
});
})(jQuery);
</script>
<?php
}, 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment