-
Notifications
You must be signed in to change notification settings - Fork 10
Extensions Sticky Header
Compatible With: Header template parts (Site Editor) Since: 1.0.0
The Sticky Header Extension makes header template parts stick to the top of the viewport when scrolling. Adds advanced behaviors like shrinking, auto-hiding, shadows, and background changes for polished, modern headers.
Key Features:
- Sticky positioning on scroll
- Optional shrink effect (reduces height when scrolled)
- Auto-hide on scroll down, reveal on scroll up
- Shadow depth control
- Background color on scroll
- Global settings in plugin options
- Works exclusively with header template parts
- Open Site Editor (Appearance > Editor)
- Edit your Header template part
- Select the template part wrapper
- Open Sticky Header panel in sidebar
- Toggle Enable Sticky Header
- Customize shadow, shrink, and hide behaviors
- Enable Sticky Header: Makes header stick to top when scrolling
- Shadow Size: None, Small, Medium, Large (depth when scrolled)
- Shrink on Scroll: Reduces header height by percentage when scrolled
- Shrink Amount: 5% to 50% size reduction (default: 50%)
- Hide on Scroll Down: Auto-hide when scrolling down, reveal when scrolling up
- Background on Scroll: Apply global background color when scrolled (set in DesignSetGo Settings)
- Enable/Disable Globally: Master switch for sticky headers
- Z-Index: Stacking order (default: 1000)
- Transition Speed: Animation duration for shrink/hide effects
- Background Color: Applied when "Background on Scroll" enabled
Sticky header keeps cart and search accessible while browsing products.
Auto-hide on scroll down maximizes reading space, reveals on scroll up for navigation.
Use "Background on Scroll" to add solid background when scrolling away from hero.
Shrink on scroll reduces header height, preserving space while maintaining access.
DO:
- Use medium shadow for depth without overwhelming
- Test shrink amount (15-20% works well)
- Enable "Hide on Scroll Down" for long pages
- Add background on scroll if header is initially transparent
- Test on mobile (ensure touch targets stay 44px+)
DON'T:
- Use sticky on tall headers (>150px) without shrinking
- Combine auto-hide with very fast scrolling content (can feel glitchy)
- Set shrink amount > 30% (nav items become too small)
- Forget to test with mobile menus
- Use heavy shadows (distracting)
- Transparent to Solid: Start with transparent header, enable "Background on Scroll"
-
Performance: Uses CSS
position: sticky(GPU accelerated, no JS scroll listeners) - Footer Conflict: If footer sticks, ensure it doesn't have sticky classes
- Debugging: Check DesignSetGo Settings if controls disabled (global toggle may be off)
- Shadow Only: Use shadow without shrink for subtle depth
- Full Auto-Hide: Combine hide on scroll with shrink for maximum space
- Only applies to template parts with
area="header"or slug containing "header" - Requires global setting enabled in DesignSetGo Settings
- Z-index controlled globally (avoid conflicts with modals, dropdowns)
- Works with FSE and classic themes using template parts
Auto-generated from
docs/extensions/STICKY-HEADER.md. To update, edit the source file and changes will sync on next push to main.
- Accordion
- Advanced Heading
- Blobs
- Breadcrumbs
- Card
- Chart
- Comparison Table
- Countdown Timer
- Counter Group
- Divider
- Dynamic Image
- Fifty Fifty
- Flip Card
- Form Builder
- Grid
- Hotspot
- Icon
- Icon Button
- Icon List
- Image Accordion
- Map
- Modal
- Modal Api Reference
- Modal Auto Triggers
- Modal Fse Compatibility
- Modal Gallery Navigation
- Modal Trigger
- Pill
- Product Categories Grid
- Product Showcase Hero
- Progress Bar
- Query
- Query Filter
- Query Group Header
- Query No Results
- Query Pagination
- Query Results
- Row
- Scroll Accordion
- Scroll Marquee
- Scroll Slides
- Section
- Section Divider
- Slider
- Star Rating
- Sticky Sections
- Table Of Contents
- Tabs
- Text Path
- Timeline
- Background Video
- Block Animations
- Clickable Group
- Conditional Visibility
- Custom Css
- Draft Mode
- Dynamic Tags
- Expanding Background
- Grid Mobile Order
- Grid Span
- Hover Effects
- Max Width
- Responsive Visibility
- Reveal Control
- Scroll Parallax
- Sticky Header
- Style Binding
- Svg Patterns
- Text Alignment Inheritance
- Text Reveal
- Abilities Api
- Abilities Api Guide
- Block Bindings
- Draft Mode Api
- Interactive Blocks
- Markdown Content Negotiation
- Rest Api Reference
- Wp Cli Reference
- Ai Assisted Development
- Best Practices Summary
- Block Controls Organization
- Block Development Best Practices Comprehensive
- Block Exclusion Guide
- Deploying To Wordpress Org
- Design System
- 2026 04 16 Blocks Editor Ux Design
- 2026 04 17 Theme 3 Inspector Ia
- 2026 04 21 Query Block Onboarding
- 2026 04 21 Query Capable Layout Blocks Design
- 2026 04 27 Block Roadmap Ideas
- 2026 07 01 Shape Divider Theme Inheritance
- 2026 07 02 Icon Block Dynamic Render Pilot
- 2026 07 06 Section Divider Block Design
- 2026 07 06 Section Style Variations Fse Design
- 2026 07 06 Section Styles Editor Preview
- 2026 07 07 Row Grid Overlay Hover Parity Design
- 2026 07 21 Conditional And Dup Label Sourcing
- 2026 07 23 Theme Block Type Animation Defaults
- 2026 08 16 Chart Block
- 2026 08 16 Greenshift Gap Roadmap
- 2026 08 17 Woocommerce Surface
- 2026 08 24 Loop Carousel
- 2026 08 24 Star Rating Block
- 2026 09 17 Abilities Drift Prevention
- 2026 09 17 Abilities Drift Prevention Implementation
- 2026 09 29 Existing User Regression Fixes
- 2026 09 29 Release Preflight Fixes
- Readme
- 2026 07 02 Block Authorability Audit
- 2026 09 29 Regression Fixes
- 2026 09 29 Release 2.9.0
- 2026 09 29 Release Fixes