Unminify CSS, HTML, and JS
http://unminify.com/
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…
When entering a coupon code for Free Shipping, the Free shipping option is not selected by default. A quick solution is to add a function that disables all other shipping options, leaving Free Shipping as the only available option. Add this snippet to your functions file. It hides everything but free_shipping if it’s available and…
Restrict Woocommerce pages to logged in usesrs only: /****************** Logged in Only *************************/ function woo_loggedin_redirect() { if ( ! is_user_logged_in() && (is_woocommerce() || is_cart() || is_checkout()) ) { // feel free to customize the following line to suit your needs wp_redirect(home_url()); exit; } } add_action(‘woo-loggedin_redirect’, ‘woo_loggedin_redirect’);
If WordPress doesn’t show a title be default on a blog page. This code is for Genesis, but will work for any theme if you change the hook. Create a new file called home.php with the following code. That’s the template file that WordPress uses for its Posts Page. $content = get_post( $posts_page )->post_content; $title_output…
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; }
.container { position:relative; } .absolute-center { position: absolute; left: 50%; /* horizontal alignment */ top: 50%; /* vertical alignment */ transform: translate(-50%, -50%); /* horizontal, vertical alignment fine tuning; explanation: http://stackoverflow.com/q/36817249 */ }