Disable default WordPress image sizes

// Disable default WordPress image sizes add_filter('intermediate_image_sizes', '__return_empty_array'); // Disable large scaled image size add_filter('big_image_size_threshold', '__return_false');…

Display the stock availability for all product types in WooCommerce archive pages

Learn how to add Availability label ? in your WooCommerce website. This will help to notify…

Hide product categories

Hides some categories that customers are not supposed to see.

Carla Mawyin
<10

Open External link to a new tab

This code snippet enhances a WordPress website by automatically opening external links in new tabs. When…

Body on Scroll

;(function ($) { $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 5) { $("body").addClass("scroll-500"); $(".tm-header").removeClass("uk-blend-difference");…

JavaScript for Craft Picker

// Menu Toggle function toggleMenu() { const mobileNav = document.querySelector('.mobile-nav'); mobileNav.classList.toggle('active'); } // Close Menu on…

MemberPress: ActiveCampaign - Add Custom Field to ActiveCampaign Subscriber Data in MemberPress

This code snippet customizes the data sent to ActiveCampaign through the MemberPress integration. Once the code…

Custom Payment Icon

Register a custom payment icon to show on the checkout form.

1 62 63 64 65 66 228