Logo Scroll Shrink (CSS)

/* Prevent transition flicker during measurement */ header.sticky-header.no-anim { transition: none !important; } /* Transforms */ header.sticky-header .logo img, header.sticky-header.elementor-sticky–effects .tagline, header.sticky-header, header.sticky-header #schedule-service-btn { transition: transform 0.25s ease; } /* Optional element scales */ header.sticky-header.scrolled .logo { transform: scale(0.7);…Continue reading

Logo Scroll Shrink (JS)

/** * Sticky header with stable base height: * – Computes base height ONLY in unscrolled state and stores it in –header-h * – Shrinks by CSS percentage when `.scrolled` is added * – Recomputes base when crossing back to…Continue reading

Gravitar Fix

add_filter(‘get_avatar’, function($avatar_html, $id_or_email, $size) { // Force width/height attributes to match the requested avatar size $size = intval($size) ?: 26; // Remove existing width/height to avoid duplicates $avatar_html = preg_replace(‘/\s(width|height)=”\d+”/i’, ”, $avatar_html); // Add explicit width/height $avatar_html = preg_replace( ‘/]+)>/’,…Continue reading

Site Wide Header

add_filter(‘get_custom_logo’, function($html) { // Only touch the header logo return preg_replace( ‘/]+)>/’, ‘‘, // set to your display size $html, 1 ); });Continue reading

Site Wide Header

add_filter(‘get_custom_logo’, function($html) { // Only touch the header logo return preg_replace( ‘/]+)>/’, ‘‘, // set to your display size $html, 1 ); });Continue reading

frontend/js/snippets/scroll-behavior/sticky

… document.addEventListener(“DOMContentLoaded”, () => { // Customize this to match your sticky header (or set to null if not needed) const HEADER_SELECTOR = “#site-header”; const getHeaderOffset = () => { const header = HEADER_SELECTOR && document.querySelector(HEADER_SELECTOR); return header ? header.getBoundingClientRect().height…Continue reading

LIFTER – Course to Module

/** * LifterLMS Text Replacement Snippet – VERIFIED VERSION * Changes “Courses” to “Modules” and “Lessons” to “Steps” * Add to WP Code Snippets or functions.php * Run everywhere (Frontend & Admin) * * Based on official LifterLMS documentation and…Continue reading