exclude script of theme child
-
Hi!
Great plugin!
I have this code in function.php, I can’t get it to work when unifying the js, is there a way to exclude it?function print_my_inline_script() { if ( is_product()) { ?> <link href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css" rel="stylesheet"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script type="text/javascript"> $('#deleteamc').on('click',function(e) { event.preventDefault(); var form = this; swal({ title: "Confirmaci\u00F3n", text: "Revisar y confirmar la oferta", type: "warning", showCancelButton: true, confirmButtonColor: "#d81f12", confirmButtonText: "Enviar la oferta", cancelButtonText: "No, cancelar", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { $('.auction_form.cart').submit(); } else { swal("Cancelado", "Puedes revisar el valor de tu oferta :)", "error"); } }); }); </script> <?php } } add_action( 'wp_footer', 'print_my_inline_script',20 );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘exclude script of theme child’ is closed to new replies.