Regex Builder
http://regexr.com/
regex cheatsheet:
http://www.ppchero.com/analytics-regular-expression-characters/
//Custom Header function sample_genesis_do_header() { global $wp_registered_sidebars; if ( ( isset( $wp_registered_sidebars[‘header-right’] ) && is_active_sidebar( ‘header-right’ ) ) || has_action( ‘genesis_header_right’ ) ) { genesis_markup( array( ‘html5’ => ‘ ‘, ‘xhtml’ => ‘ ‘, ‘context’ => ‘header-widget-area’, ) ); do_action( ‘genesis_header_right’ ); add_filter( ‘wp_nav_menu_args’, ‘genesis_header_menu_args’ ); add_filter( ‘wp_nav_menu’, ‘genesis_header_menu_wrap’ ); dynamic_sidebar( ‘header-right’ ); remove_filter( ‘wp_nav_menu_args’,…
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; }
This is the standard CSS for making video embeds responsive. The CSS <style> .video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; } .video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> The iframe wrapper <div class=”video-container”> <iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/GY25hkrZyZA?rel=0&showinfo=0″ frameborder=”0″…
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; } }…
Step 1: Create a formID datalayer variable Step 2: Create custom HTML tag, to push Gravity Forms into the datalayer: Step 3: Create Trigger for Gravity Forms: Step 4: Create Form Event Tag:
// Move image above post title in Genesis Framework 2.0 remove_action( ‘genesis_entry_content’, ‘genesis_do_post_image’, 8 ); add_action( ‘genesis_entry_header’, ‘genesis_do_post_image’, 8 );