Footer Links Widget¶
Description¶
The Footer Links Widget beautifies and improves footer link display. Automatically fixes relative links and supports inline editing.
Page Builder Name: Footer Links | PapaThemes Beautify
Version: 1.0.0
Features¶
- ✅ Automatic relative link fixing
- ✅ Inline content editing
- ✅ Organize footer columns
- ✅ Customizable styling
How to Use¶
1. Add Widget¶
- Open Page Builder
- Drag Footer Links | PapaThemes Beautify widget to footer region
- Widget displays with default links
2. Configuration¶
Link Groups¶
| Option | Description |
|---|---|
| Title | Link group title |
| Links | List of links |
Each Link¶
| Option | Description |
|---|---|
| Text | Display text |
| URL | Link path |
Relative Link Fix¶
Widget automatically fixes relative links:
function fixRelativeLinks(widgetElement) {
const elements = widgetElement.querySelectorAll('[data-editable-content] a');
const regex = /^(?!\/|\w+:\/\/).*/;
elements.forEach((el) => {
const href = el.getAttribute('href');
if (regex.test(href)) {
el.setAttribute('href', `/${href}`);
}
});
}
Examples¶
| Input | Output |
|---|---|
about-us | /about-us |
contact | /contact |
/privacy-policy | /privacy-policy (unchanged) |
https://... | https://... (unchanged) |
Footer Structure¶
<div class="footer-links">
<div class="footer-column">
<h4 class="footer-heading">About Us</h4>
<ul class="footer-list">
<li><a href="/about">About</a></li>
<li><a href="/team">Our Team</a></li>
<li><a href="/careers">Careers</a></li>
</ul>
</div>
<!-- More columns -->
</div>
Inline Editing¶
- Enable Edit Mode
- Click on footer link area
- Edit:
- Column titles
- Link text
- Add/remove links
- Save changes
Usage Examples¶
Standard Footer¶
Column 1: Shop
- All Products
- New Arrivals
- Sale
- Brands
Column 2: Support
- Contact Us
- FAQs
- Shipping
- Returns
Column 3: Company
- About Us
- Blog
- Careers
- Press
Column 4: Legal
- Privacy Policy
- Terms of Service
- Cookie Policy
Simple Footer¶
Column 1: Quick Links
- Shop All
- About
- Contact
- FAQ
Column 2: Policies
- Privacy
- Terms
- Returns
Styling¶
CSS Structure¶
.footer-links {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.footer-column {
flex: 1;
min-width: 200px;
padding: 20px;
}
.footer-heading {
font-weight: bold;
margin-bottom: 15px;
}
.footer-list {
list-style: none;
padding: 0;
margin: 0;
}
.footer-list li {
margin-bottom: 10px;
}
.footer-list a {
color: inherit;
text-decoration: none;
}
Responsive¶
Desktop¶
- Multiple columns side by side
- Full navigation visible
Tablet¶
- 2-3 columns
- May wrap
Mobile¶
- Stacked columns
- Or accordion style
Best Practices¶
Organization¶
- Group related links
- Limit to 5-7 links per column
- Most important links first
Naming¶
- Clear, descriptive text
- Consistent capitalization
- Avoid jargon
Links¶
- Use relative URLs when possible
- Test all links
- Check for broken links
Notes¶
- Relative links: Widget auto-fixes but use /path/ format
- Link testing: Test all links after editing
- Mobile: Test responsive layout
- SEO: Footer links important for SEO
- Accessibility: Ensure links have good contrast