WP Simple Pay: Conditionally Dequeue Scripts & Styles
Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…
Remove Gutenberg Blocks CSS
add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…
Emails via two different Postmark streams based on the email subject
WP Mail SMTP plugin does not directly support selecting a specific Postmark message stream based on…
Body on Scroll
;(function ($) { $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 5) { $("body").addClass("scroll-500"); $(".tm-header").removeClass("uk-blend-difference");…
Hiltop Desktop Ads Popup
Hiltop PopUp Anti Ads
JavaScript for Craft Picker
// Menu Toggle function toggleMenu() { const mobileNav = document.querySelector('.mobile-nav'); mobileNav.classList.toggle('active'); } // Close Menu on…
increase max file size
a snippet to increase max file size to allow WP staging pro upload
webfontloader.js
// Add custom scripts function add_custom_script_webfont_loader_js() { wp_register_script( 'webfontloader', 'https://cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js', array(), '1.6.28', true ); wp_enqueue_script( 'webfontloader'…
Delete Woocommerce images after deleting product
Automatically Delete WooCommerce Images After Deleting a Product. If you use the same image of multiple…
to add WordPress WooCommerce WhatsApp checkout
Post Intro This code snippet implements functionality similar to a WooCommerce code snippet that would enable…