JQuery: Redirect all Third Party URLs to New Tab

Redirect all third-party links to a new tab without wasting time by using the below code. jQuery(document).ready(function($) { $("a[href^=http]").each(function(){ // NEW - excluded domains list var excludes = [ 'rapidboostmarketing.com',…

Comments Off on JQuery: Redirect all Third Party URLs to New Tab

Woocommerce: Cart only 1 Item at a Time

If you are looking for your Woocommerce store to sell only 1 product at a time or you need to purchase 1 product at a time. Just use the below…

Comments Off on Woocommerce: Cart only 1 Item at a Time

Ajax Form Submission

<script type="text/javascript"> var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>"; </script> <script> jQuery(document).ready(function($){ $('form.ajax').on('submit', function(e){ e.preventDefault(); var that = $(this), url = that.attr('action'), type = that.attr('method'); var name = $('.name').val(); var…

0 Comments