hide_wp_adminbar.css

html { margin-top: 0 !important; } #wpadminbar { translate: 0 -100%; } #wpadminbar:before { content: “”; position: absolute; inset: 0; translate: 0 100%; } #wpadminbar, #wpadminbar:before { transition: 0.5s 0.5s cubic-bezier(0.19, 1, 0.22, 1); } #wpadminbar:hover, #wpadminbar:hover:before { translate: 0…Continue reading

Cat Distributor v2 css

h1{text-transform: none!important;} h2{text-transform: none!important;} h3{text-transform: none!important;} .ultp-block-title a{text-transform: none!important;} .site-branding .site-title { font-style: normal!important; font-weight: 500!important; font-size: 3.494rem!important; line-height: 1.2!important; letter-spacing: -0.029em!important; font-family: ‘Playfair Display’, serif!important; color: #000000!important; } /* All Mobile Sizes (devices and browser) */ @media only screen…Continue reading

HosaEna Header Solid Transition

(function(){ const header = document.querySelector(‘.site-header’); function setSolidByScroll(){ if(!header) return; if(window.scrollY > 50){ header.classList.add(‘he-solid’); } else { header.classList.remove(‘he-solid’); } } window.addEventListener(‘scroll’, setSolidByScroll, {passive:true}); document.addEventListener(‘DOMContentLoaded’, setSolidByScroll); if(header){ header.addEventListener(‘mouseenter’, ()=> header.classList.add(‘he-solid’)); header.addEventListener(‘mouseleave’, ()=> setSolidByScroll()); } })();Continue reading

In Control Common JS

function isReady(reference) { switch(reference) { case ‘document’: if(window.document && window.document.body) return true; break; case ‘fancybox’: if(typeof(window.Fancybox) != ‘undefined’) return true; break; } return false; } function allReady() { var dependencies = Array.from(arguments); dependencies.unshift(‘document’); return dependencies.every(isReady); } function waitFor() { if(arguments.length…Continue reading

How to Style the WC Vendors Signup Form

/* ===================================================== WCV Vendors Signup Form – Custom Styling This CSS snippet customizes the vendor registration form to improve layout, typography, colors, and button style ===================================================== */ /* Add another column */ form#wcv-registration-form { column-count: 2; column-gap: 64px; } /*…Continue reading

Single product – Select default variation

jQuery(function ($) { function variationMatchesVisibleSelectOptions($form, variation) { if (!variation || !variation.attributes) return false; for (const attrName in variation.attributes) { const attrValue = variation.attributes[attrName]; const $select = $form.find(‘select[name=”‘ + attrName + ‘”]’); if (!$select.length) return false; // Bestaat deze value echt…Continue reading