Target WooCommerce submit button

Please copy the woo-commerce checkout.js and paste in your theme folder and add following code in your function.php and after then you can change the checkout.js from your them. function so_27023433_disable_checkout_script(){ wp_dequeue_script( ‘wc-checkout’ ); wp_enqueue_script(‘checkout’, get_template_directory_uri() . ‘/js/checkout.js’, array(), ‘1.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, ‘so_27023433_disable_checkout_script’ );

jQuery no conflict

I prefer this: (function($){ “use strict”; $(document).ready(function(){ $(‘.flexslider’).flexslider({ slideshow: true, animationSpeed: 400, initDelay: 100, animation: “slide”, animationLoop: true, itemWidth: 258, itemMargin: 26 }); }); })(this.jQuery);

Jquery being loaded wrong

since it runs on old jquery ,try adding the old jquery on your footer of your theme, add the jquery manually and add script noconflict. You can get jquery library list from google cdn View Sample

How to get this jQuary script working?

Oh okay.. I think I solved it. I put the script in the header.php (I think “into the loop” as they say?) just behind the opening <header>-tag: <body> <header> <script type=”text/javascript”> (function($) { $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 200) { $(‘#menu’).fadeIn(500); } else { $(‘#menu’).fadeOut(500); } }); }); })(jQuery); </script>

Custom Javascript not working? [closed]

There are a few problems but the main one is when sidebarEffects.js is loaded the HTML it’s looking for doesn’t exist yet. So… var container = document.getElementById( ‘st-container’ ) // and buttons = Array.prototype.slice.call( document.querySelectorAll( ‘#st-trigger-effects > button’ ) ) are both empty when the script is run. Easiest way to fix it is to … Read more