How to Add JavaScript to your theme

From the last WordPress meetup, we discussed How to add javascript to your theme Inside functions.php, hook into the wp-enqueue_scripts hook add_action( ‘wp_enqueue_scripts’, ‘wpmia_load-javascript_files’); function wpmia_load_javascript_files() { wp_register_script( ‘info-caroufredsel’, get_template_directory_uri() . ‘ jquery.carouFredSel-5.5.0-packed.js’, array (‘jquery’, ‘5.5.0’, true); … … wp_enqueue_script( ‘info-carousel-instance’ );   if ( is_front_page() ) { wp_enqueue_script(‘home-page-main-flex-silder’); }  }

How to setup Swiftype Crawler Based Search Engine for WooCommerce

I first started using Swiftype late last year (2015). The user experience offered by SwifType is phenomenal. It makes searching fun and not guesswork. I started with the regular SwifType Search Engine along with the WordPress plugin from SwifType. While it provided basic functionality, the array of results did not include all potential matches. Digging…

[SOLVED] How to trigger emails of Failed Orders in WooCommerce

Update on February 3rd, 2016: As of version 2.5 of WooCommerce, this functionality is now built into the WC Core. This plugin is not needed. See the WC 2.5 Changelog for more details.   Following the lead from this blog post by SkyVerge, I set upon to create email notifications when an order fails. Essentially,…