Gravity Forms Make Fields Read Only

jQuery(document).ready(function($) { $(‘#input_1_26’).on(‘mousedown’, function(e) { e.preventDefault(); this.blur(); }); }); jQuery(document).ready(function($) { $(‘#input_1_36’).on(‘mousedown’, function(e) { e.preventDefault(); this.blur(); }); }); jQuery(document).ready(function($) { $(‘#input_1_37’).on(‘mousedown’, function(e) { e.preventDefault(); this.blur(); }); });Continue reading

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

/* ================================ CATEGORY DISTRIBUTOR UNIFIED THEME ================================ */ .cd-theme { max-width: 100%; margin: 0; } /* ———- Section Headings ———- */ .cd-theme .section-heading { font-size: 24px; font-weight: 700; margin: 40px 0 20px; color: #000; border-bottom: 3px solid #000; padding-bottom: 10px;…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