Want yourFooter navigationStaying always in sight like a cell phone app? This guide will teach you how to do that in Elementor.Create sticky footer navigationApplicable tofree versionrespond in singingPaid version of Elementor. Creating such a navigation can greatly improve the user experience of your website, especially on mobile devices, making it easier for users to access important pages.
![图片[1]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101606354746.png)
What you need to know before you start
Before we get started, it's helpful to know some basic CSS because we'll beUsing custom CSS to style the sticky navigation. Make sure that Elementor is installed and that you canCreate pageThe
Step 1: Create a new container
First, you can create a new page or edit an existing one by selecting "Using elementor Edit".
![图片[2]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602324416.png)
By clicking the Plus sign (+) button to create a new container, or from the Elementor pane, set the "containers"Drag the option to the page.
For better organization of navigation items, it is recommended to choose a structure with two or more columns.
- Click the plus button ( + ) in the Elementor to add a new container.
![图片[3]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602341126.png)
- Set the structure to two or more columns to make it easier to add navigation items.
![图片[4]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602350992.png)
typical example: If you're working on aCreating Sticky Footer Navigation for Ecommerce WebsitesThe left column can be used for "Back to home page"icon, right column for "cart" icon so that users can easily access important pages.
![图片[5]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602441913.png)
Step 2: Customize the container
Next, the container needs to be customized. Click on the Dice Icons or six dots at the top of the container to open the setting.
![图片[6]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602381773.png)
- Content widthChoose "boxed" or "full width", depending on your design preference. We choose full widthThe
![图片[7]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602402265.png)
- height: Adjust the width as you need. The rest of the options remain at the default settings and can be adjusted later as needed.
![图片[8]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602463257.png)
- contexts: intypepage, add a background to the container to ensure that the navigation menu is not confused with other content.
![图片[9]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602481268.png)
- CSS ID: in high level tab to specify a container for the CSS IDIn this tutorial, we use the
der-sticky-navigation-footer
. If other classes are selected, make sure that in subsequent steps theAdjusting CSS codeThe
![图片[10]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101602560355.png)
typical example: If your footer background isdark coloredYou can chooselight colorNavigation icons to ensure a more visually appealing look.
Step 3: Adding Content to the Container
Add navigational content, such as icons and links, to the container.
- Icon box widget: Recommended use icon boxWidgets for easy access to theEach navigation itemAdd icons and labels. Add each icon and label to a separate column to keep things neat and organized.
![图片[11]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101603045030.png)
Example: for an e-commerce site that includes "homepage","look for sth.","cart"and"menu"Icon. Users can easily access important pages.
![图片[12]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101603093972.png)
![图片[13]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101603263414.png)
Step 4: Add custom HTML and CSS
In order to make the navigation bar sticky, you need to add a customized HTML and CSSto hold it in place at the bottom of the screen.
- HTML widgets: Find HTML widgetsand drag it to the createdBelow the navigation menuof any region.
![图片[14]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101603314458.png)
- Add HTML code: Add the following code to the HTML widget:
#der-sticky-navigation-footer {
display: flex; justify-content: space-around; /* Distribute icons evenly across the container */
justify-content: space-around; /* Distribute icons evenly across the container */ align-items: center; /* Vertically center the icons */
align-items: center; /* Vertically center the icons */
flex-wrap: nowrap; /* Ensure all icons stay in a single line */
position: fixed; bottom: 20px; /* Ensure all icons stay in a single line */
bottom: 20px; /* Adjusted from 10px to 20px to bring it higher */ right: 0; /* Adjusted from 10px to 20px to bring it higher */
right: 0; left: 0; /* Adjusted from 10px to 20px to bring it higher */
left: 0; max-width: 400px; /* Adjusted from 10px to 20px to bring it higher */ right: 0; left: 0; /* Adjusted from 10px to 20px to bring it higher
max-width: 400px; max-height: 60px
margin: auto; z-index: 1000;
z-index: 1000; }
}
#custom-html {
display: none; }
}
#der-sticky-navigation-footer .elementor-icon-box {
margin: 0; /* Remove extra margins for consistent spacing */
}
@media (max-width: 768px) {
#der-sticky-navigation-footer {
flex-direction: row; /* Arrange icons in a row for mobile view */
justify-content: space-evenly; /* Arrange icons in a row for mobile view */.
justify-content: space-evenly; width: 100%;
}
#der-sticky-navigation-footer .elementor-icon-box {
flex: 1; /* Distribute equal space to each icon */
}
}
This code anchors the footer navigation to the bottom of the screen and ensures proper spacing and positioning.
position: fixed
Secure the footer at the bottom.max-width
respond in singingmax-height
Limits the size of the footer.z-index
Make sure the footer is displayed above the rest of the content.
Hide custom HTML: Adds a new element to the custom HTML element called custom-html
(used form a nominal expression) CSS IDto hide the element.
![图片[15]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101605591134.png)
typical example: If you want the navigation to always be at the top, you can raise the z-index
value to ensure that the navigation is not overwritten by other content.
Step 5: Final Adjustments and Completion
You can tweak the CSS or make other design changes as needed to enhance the final result. The sticky footer navigation design in this tutorial is relatively basic and can be further optimized with some creativity.
typical example: For example, icons can be replaced with brand logos or different animations can be used to enhance the interactivity of the navigation and make it more unique.
Tips for making sticky footer navigation
- Adding a hover effect: Increase the interactivity of the icon with a hover effect that provides visual feedback when the user hovers or clicks on a link.
- Use of contrasting colors: Choose a color that contrasts with the background of your site to make sticky navigation more eye-catching.
- Adding animation effects: Add subtle animations to the footer when it appears to make it more attractive, such as fading in or sliding out when scrolling.
- Ensure mobile device friendliness: Test different screen sizes to make sure the navigation works seamlessly on mobile devices, adjusting the CSS as needed.
![图片[16]-提升用户体验:在 Elementor 中创建移动端友好的粘性页脚导航-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/10/2024101606245914.png)
typical example: Larger navigation icons on mobile devices so that users can easily click on them. This is especially important to enhance the user experience, especially on small screens.
Why use sticky footer navigation?
Sticky footer navigation is especially helpful in improving the user experience, especially on mobile devices. It allows users to quickly access important pages without having to scroll back to the top of the page, helping to improve usability, increase engagement, and ultimately improve website conversions.
summarize
Using sticky footer navigation is an effective way to improve the user experience on your website, by keeping the navigation bar always within the user's line of sight, visitors can easily access important pages at any time without having to return to the top of the page. This not only improves the usability of your website, but also increases user interaction.
Link to this article:https://www.361sale.com/en/21565The article is copyrighted and must be reproduced with attribution.
No comments