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

Enable ‘Quanity’ label in woocommerce

add_action( ‘woocommerce_before_add_to_cart_quantity’, ‘bbloomer_echo_qty_front_add_cart’ ); function bbloomer_echo_qty_front_add_cart() { global $product; if ( $product->get_min_purchase_quantity() == $product->get_max_purchase_quantity() ) return; echo ‘ Quantity: ‘; }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

GravityView_DIR_AC_SYNC_GravityView Sync System

/** * WPCode Snippet: GravityView Sync System – MANUAL SYNC ONLY (FIXED) * Description: Syncs GravityView configurations to custom post type * Location: Run Everywhere * Priority: 20 * * ⚠️ AUTO-SYNC DISABLED – Manual sync only via admin bar…Continue reading