Last active
July 7, 2023 12:57
-
-
Save xlplugins/7358808fe55a87d10acfcf39e5431cc8 to your computer and use it in GitHub Desktop.
Disable all shimmer until at time of load. Reactivated when user perform any action (Form change,Mini Cart )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wfacp_internal_css', function () { | |
?> | |
<style> | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp-pro-thumb:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_switcher_item:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_name_inner > span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_pro_attr_single:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_subs_details span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_select_options a:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_quantity .wfacp_qty_wrap:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_price_container .wfacp_product_price_sec span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_price_container del span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_price_container ins span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_qv-button:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_pro_attr_single span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_you_save_text:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_switch:after, | |
body #wfacp_checkout_form #product_switching_field.wfacp_pro_switch.wfacp_animation_start .wfacp_product_choosen:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_switcher_item:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_row_quantity:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_best_value:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_whats_included > h3:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_whats_included .wfacp_product_switcher_description:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_you_save_text:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_qv-button:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_delete_item:after, | |
body .wfacp_pro_switch.wfacp_animation_start span.woocommerce-Price-amount.amount:after { | |
display: none; | |
} | |
</style> | |
<script> | |
(function ($) { | |
let only_once = false; | |
$(document.body).on('wfacp_setup', function () { | |
$(document.body).on('update_checkout', function () { | |
if (only_once) { | |
return true; | |
} | |
let d = $('.wfacp_input_hidden_data').val(); | |
if ('{}' == d || '' == d) { | |
$('body').removeClass('wfacp_anim_active'); | |
only_once = true; | |
} | |
}); | |
}); | |
})(jQuery); | |
</script> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment