Header
Configure your site's global header.
Overview
The header appears at the top of every page on your site. It typically contains:
- Logo
- Navigation menu
- Search functionality
- Call-to-action buttons
- Social links
TheDock lets you design your header visually and apply it globally.
Header Basics
What is the Header?
The header is a module that's automatically inserted at the top of every template. Unlike regular sections, you don't need to add it to each template manually.
Accessing Header Settings
- Click B. Layout in navigation
- Click Header in the sidebar
Assigning a Header Module
Selecting Your Header
- In the Header section, you'll see available header modules
- Click on a header to preview it
- Click Use as Header to apply globally
Pre-built Headers
TheDock includes pre-designed headers. You can:
- Use them as-is
- Customize them
- Create your own from scratch
Creating a Custom Header
- Go to B. Layout > Modules
- Click New Module
- Build your header layout
- Return to Header and select your new module
Editing Your Header
Opening the Header Editor
- In B. Layout > Header
- Click Edit Header on the active header
- The module editor opens
Header Structure
Typical header structure:
Header Module
└── Section
└── Grid
├── Area: Logo
│ └── Block: Image/Text
├── Area: Navigation
│ └── Block: Menu
└── Area: Actions
└── Block: Button/Search
Common Header Elements
Logo
| Setting | Description |
|---|---|
| Image | Upload your logo file |
| Size | Logo dimensions |
| Link | Usually links to homepage |
| Alt Text | Accessibility description |
Navigation Menu
| Setting | Description |
|---|---|
| Menu Location | WordPress menu to display |
| Style | Horizontal, vertical, dropdown |
| Mobile Menu | Hamburger icon for mobile |
Search
| Setting | Description |
|---|---|
| Icon | Search icon display |
| Expand | Click to expand search field |
| Style | Inline or overlay |
CTA Button
| Setting | Description |
|---|---|
| Text | Button label |
| Link | Destination URL |
| Style | Primary, secondary, outline |
Header Behavior
Sticky Header
Make your header stay visible while scrolling:
- Select the header section
- Enable Sticky in settings
- Configure:
- Sticky offset (space from top)
- Background change on scroll
- Shrink animation
Transparent Header
For headers overlaying hero images:
- Set header background to transparent
- Adjust text colors for visibility
- Consider scroll behavior (solid on scroll)
Mobile Header
Headers automatically adapt for mobile:
- Navigation collapses to hamburger menu
- Logo may resize
- Actions may be hidden or simplified
Responsive Design
Desktop Header
Full header with:
- Complete navigation
- All elements visible
- Maximum logo size
Tablet Header
May include:
- Condensed navigation
- Hamburger menu (optional)
- Adjusted spacing
Mobile Header
Typically features:
- Hamburger menu icon
- Simplified logo
- Essential actions only
Preview Modes
Use the device preview to test header on all sizes.
Menu Integration
WordPress Menus
TheDock uses WordPress menus for navigation:
- In WordPress admin, go to Appearance > Menus
- Create a menu with your pages
- In TheDock, assign the menu location
- The menu displays in your header
Menu Locations
Configure in C. Build > Menu Locations:
- Primary Menu
- Secondary Menu
- Mobile Menu
Best Practices
1. Keep It Simple
Include only essential elements. Don't overcrowd.
2. Prioritize Navigation
Make it easy to find the menu. Users expect top-level navigation.
3. Responsive Testing
Test on all device sizes. Mobile header is crucial.
4. Contrast
Ensure logo and links are visible against background.
5. Fast Loading
Optimize logo image size for quick loading.
6. Accessible
- Proper heading structure
- Keyboard navigation
- Clear focus states
Header Variations
Per-Template Headers
If certain pages need a different header:
- Don't use global header for that template
- Add a header module section manually
- Choose an alternative header module
Logged-In vs Logged-Out
For member sites:
- Show login/register for guests
- Show account/logout for members
- Configure via WordPress menu conditions
Troubleshooting
Header not showing
- Verify header module is assigned
- Check template structure
- Export theme to see changes
Menu not appearing
- Confirm WordPress menu exists
- Check menu location assignment
- Verify menu has items
Logo too big/small
- Adjust logo block size settings
- Check image dimensions
- Use appropriately sized source image
Sticky header overlaps content
- Add padding to first content section
- Check sticky offset settings
Mobile menu not working
- Ensure JavaScript is loaded
- Check for console errors
- Verify menu structure
Related Topics
- Footer - Global footer configuration
- Modules - Understanding modules
- Theme Structure - Menu locations