Allow Iframe but restrict direct access
RewriteEngine On RewriteCond %{HTTP_REFERER} !example.net RewriteCond %{REQUEST_URI} ^/wp-content/uploads/protected RewriteRule . – [F]
RewriteEngine On RewriteCond %{HTTP_REFERER} !example.net RewriteCond %{REQUEST_URI} ^/wp-content/uploads/protected RewriteRule . – [F]
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; } }…
single Product Pages Here’s a handy tutorial on removing product images from the single WooCommerce product page. The basic idea is that we’ll want to remove the action that adds WooCommerce images. We can do so by adding this snippet into our child functions.php or the Code Snippets plugin: 1 2 // Remove image from…
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; }
Genesis WordPress theme /* Code to Display Featured Image on top of the post */ add_action( ‘genesis_before_entry’, ‘featured_post_image’, 8 ); function featured_post_image() { if ( ! is_singular( ‘page’ ) ) return; the_post_thumbnail(‘post-image’); }