Header & Footer Templates
Create professional, fully customized headers and footers for your WordPress site using Elementor and WPBits Theme Builder.
Overview
Section titled “Overview”Header and footer templates are global templates that appear on every page of your site (unless you create conditional templates). They replace your theme’s default header and footer with your custom designs.
Creating a Header Template
Section titled “Creating a Header Template”Step 1: Start a New Header
Section titled “Step 1: Start a New Header”- Go to WPBits AFE → Theme Builder
- Click Add New Template
- Select Header as the location
- Name your template (e.g., “Main Header”)
- Click Create Template
Step 2: Design Your Header
Section titled “Step 2: Design Your Header”You’ll be redirected to Elementor editor. Common header elements:
Basic Elements:
- Site Logo: Use [WPBits] Site Logo widget
- Navigation Menu: Use [WPBits] Site Navigation widget
- Search: Add search form
- Social Icons: Link to social profiles
Layout Tips:
- Use Elementor’s Container or Section for the header wrapper
- Set position: fixed for sticky headers
- Use flexbox or grid for responsive layout
- Set appropriate padding and background color
Step 3: Add Site Logo
Section titled “Step 3: Add Site Logo”- Add [WPBits] Site Logo widget
- The logo automatically pulls from Customizer → Site Identity
- Or upload a custom logo in the widget settings
- Set logo width and alignment
Step 4: Add Navigation
Section titled “Step 4: Add Navigation”- Add [WPBits] Site Navigation widget
- Select your WordPress menu
- Configure submenu settings
- Style the menu (colors, typography, spacing)
Step 5: Make it Sticky (Optional)
Section titled “Step 5: Make it Sticky (Optional)”For a fixed header:
- Select the header section/container
- Go to Advanced → Motion Effects
- Enable Sticky: Top
- Set Sticky On: Desktop, Tablet, Mobile
- Configure sticky scroll effects
Step 6: Publish
Section titled “Step 6: Publish”- Click Publish
- The header appears on all pages
- Test on different page types
Creating a Footer Template
Section titled “Creating a Footer Template”Step 1: Start a New Footer
Section titled “Step 1: Start a New Footer”- Go to WPBits AFE → Theme Builder
- Click Add New Template
- Select Footer as the location
- Name your template (e.g., “Main Footer”)
- Click Create Template
Step 2: Design Your Footer
Section titled “Step 2: Design Your Footer”Common footer elements:
Widget Areas:
- Contact information
- About text
- Recent posts
- Social links
Menus:
- Footer navigation menu
- Legal links (Privacy, Terms, etc.)
Other:
- Copyright text
- Newsletter signup
- Contact form
Layout Tips:
- Use columns for multi-column footers
- Set background color or gradient
- Add appropriate padding
- Include dividers between sections
Step 3: Add Footer Content
Section titled “Step 3: Add Footer Content”Column Layout Example:
Section (Background: Dark)├── Column 1: About│ ├── Heading: "About Us"│ ├── Text: Company description│ └── Social Icons├── Column 2: Quick Links│ ├── Heading: "Quick Links"│ └── Nav Menu Widget├── Column 3: Contact│ ├── Heading: "Contact"│ └── Text: Address, phone, email└── Column 4: Newsletter ├── Heading: "Newsletter" └── FormStep 4: Add Copyright Bar
Section titled “Step 4: Add Copyright Bar”Below the main footer:
- Add another Section
- Single column with centered text
- Add copyright text:
© 2024 Your Site Name. All rights reserved. - Optionally add footer menu with legal links
Step 5: Publish
Section titled “Step 5: Publish”- Click Publish
- Footer appears on all pages
- Test responsiveness
Using Pre-Built Templates
Section titled “Using Pre-Built Templates”Speed up the process with pre-built templates:
- In Elementor, click the WPBits logo
- Go to Theme Builder category
- Browse header or footer templates
- Click Insert to import
- Customize to match your brand
Site Navigation Widget
Section titled “Site Navigation Widget”The navigation widget is crucial for headers:
Basic Setup
Section titled “Basic Setup”- Add [WPBits] Site Navigation widget
- Menu: Select your WordPress menu
- Layout: Horizontal or Vertical
- Align: Left, Center, or Right
Dropdown Menus
Section titled “Dropdown Menus”Configure submenu behavior:
- Dropdown Direction: Down, Up, Left, Right
- Dropdown Trigger: Hover or Click
- Animation: Fade, Slide, etc.
- Width: Auto or Custom
Mega Menus
Section titled “Mega Menus”Create multi-column dropdowns:
- In WordPress, go to Appearance → Menus
- Edit a top-level menu item
- Check WPBits Mega Menu
- Select an Elementor Template to display
- Create the template using Elementor
Mega Menu Template Tips:
- Use columns for multi-column layout
- Add featured images, text, buttons
- Include links to important pages
- Keep height reasonable (not too tall)
Mobile Navigation
Section titled “Mobile Navigation”Mobile Menu
Section titled “Mobile Menu”The navigation widget includes a mobile hamburger menu:
- Mobile Breakpoint: Set when mobile menu appears (768px default)
- Menu Icon: Choose hamburger icon style
- Mobile Menu Style: Slide-out, dropdown, or full-screen
- Close Button: Customize close icon
Mobile Header Layout
Section titled “Mobile Header Layout”Consider:
- Logo Position: Center or left
- Menu Icon: Right side typically
- Reduced Padding: Less padding on mobile
- Simplified Content: Hide some elements on mobile
Sticky Header
Section titled “Sticky Header”Creating a Sticky Header
Section titled “Creating a Sticky Header”- Select header section/container
- Advanced → Motion Effects
- Enable Sticky: Top
- Configure settings:
- Offset: Space from top before sticking
- Effects Offset: When effects start
- Sticky On: Choose devices
Sticky Effects
Section titled “Sticky Effects”Add effects when scrolling:
- Background Change: Different background when sticky
- Logo Change: Smaller logo when scrolling
- Height Change: Reduce header height
- Shadow: Add box-shadow when sticky
Use Elementor’s Sticky state in styles tab.
Responsive Design
Section titled “Responsive Design”Breakpoints to Test
Section titled “Breakpoints to Test”- Desktop: 1024px+
- Tablet: 768px - 1023px
- Mobile: < 768px
Common Responsive Adjustments
Section titled “Common Responsive Adjustments”Header:
- Stack logo and menu on tablet
- Hamburger menu on mobile
- Reduce logo size on smaller screens
- Adjust padding
Footer:
- 4 columns → 2 columns (tablet)
- 2 columns → 1 column (mobile)
- Center-align content on mobile
- Stack elements vertically
Advanced Techniques
Section titled “Advanced Techniques”Transparent Header
Section titled “Transparent Header”For headers over hero sections:
- Set header Background: Transparent
- Set position: Absolute
- Adjust hero section Padding Top for header height
- Use Sticky to add background when scrolling
Different Headers for Different Pages
Section titled “Different Headers for Different Pages”Create conditional templates:
- Create multiple header templates
- Set Display Conditions for each:
- Homepage: Special header with hero
- Blog: Standard header
- Shop: Header with cart icon
- Publish each template
Dynamic Elements
Section titled “Dynamic Elements”Add dynamic content to headers/footers:
- Current Page Title: Using dynamic tags
- User Name: For logged-in users
- Cart Count: WooCommerce cart item count
- Search Results Count: On search pages
Common Issues
Section titled “Common Issues”Header Overlapping Content
Section titled “Header Overlapping Content”- Remove theme’s default header via theme settings
- Or add padding-top to body/content area
- Use theme hooks to remove theme header
Menu Not Displaying
Section titled “Menu Not Displaying”- Verify menu is created in Appearance → Menus
- Check menu location assignment
- Ensure menu has items
Sticky Header Not Working
Section titled “Sticky Header Not Working”- Check that Sticky is enabled on correct element
- Verify sticky settings (offset, devices)
- Clear cache
- Check for theme/plugin conflicts
Mobile Menu Not Opening
Section titled “Mobile Menu Not Opening”- Ensure JavaScript is not blocked
- Check for console errors
- Verify mobile breakpoint setting
- Test with default theme to rule out conflicts
Best Practices
Section titled “Best Practices”Performance
Section titled “Performance”- Optimize Logo: Use SVG or optimized PNG
- Minimize Scripts: Avoid heavy animations
- Lazy Load: Don’t lazy load header images (above fold)
- Cache: These templates are great candidates for caching
Design
Section titled “Design”- Consistent Height: Maintain consistent header height
- Clear Navigation: Make menu items easy to read
- Mobile-First: Design for mobile, then desktop
- Brand Identity: Ensure logo and colors match brand
Accessibility
Section titled “Accessibility”- Keyboard Navigation: Ensure menus work with keyboard
- Aria Labels: Add proper labels to menu toggle
- Color Contrast: Ensure text is readable
- Focus States: Style :focus states for links
Examples
Section titled “Examples”Simple Header
Section titled “Simple Header”Container (Flex, Space Between)├── Site Logo Widget (Width: 150px)└── Site Navigation Widget (Horizontal, Right aligned)Advanced Header
Section titled “Advanced Header”Container (Sticky: Top)├── Top Bar Section│ ├── Contact Info (Phone, Email)│ └── Social Icons└── Main Header Section ├── Site Logo ├── Site Navigation (with Mega Menus) └── Search IconComplex Footer
Section titled “Complex Footer”Section 1: Footer Widgets (4 Columns)├── About Widget├── Recent Posts├── Contact Info└── Newsletter Form
Section 2: Footer Bottom Bar├── Copyright Text└── Legal Menu (Privacy | Terms | Cookies)Next Steps
Section titled “Next Steps”- Learn about Location Templates
- Create Archive Templates
- Explore Site Navigation Widget
Support
Section titled “Support”Need help with headers/footers?