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

GravityView_DIR_AB_ACF – GravityView Views ACF Fields

/** * WPCode Snippet: GravityView Views ACF Fields * Description: Registers ACF fields for GravityView configurations and settings * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() { if ( ! function_exists( ‘acf_add_local_field_group’…Continue reading

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