JS Full Window Height

// Image section height. var windowHeight = $( window ).height(); $( ‘.image-section’ ) .css({‘height’: windowHeight +’px’}); $( window ).resize(function(){ var windowHeight = $( window ).height(); $( ‘.image-section’ ) .css({‘height’: windowHeight +’px’}); });

|

Woocommerce default shipping selection

This function makes Woocommerce automatically select the lowest cost shipping by default function ea_default_shipping_method( $method ) { $_cheapest_cost = 100000; $packages = WC()->shipping()->get_packages()[0][‘rates’]; foreach ( array_keys( $packages ) as $key ) { if ( ( $packages[$key]->cost > 0 ) && ( $packages[$key]->cost < $_cheapest_cost ) ) { $_cheapest_cost = $packages[$key]->cost; $method_id = $packages[$key]->id; } }…

Modal Popup

Javascript modal popup on page load, and exit, etc., with Jquery and Bootstrap. Sources: JS Onload: JS Mouseleave: HTML: × Shopping, Dining, Entertainment or Beaches, Golf and Area Attractions!     Sarasota has it all!   Request your visitors brochure today!     Backdrop Opacity .modal-backdrop { opacity:0.7 !important; }