I want to add icons on my mobile version like this:
I want to add it to the bottom. Please help
Hi @aromaticaparfum ,
To add icons to the bottom of your mobile version (like shown in your image), you can use custom HTML and CSS. Here’s a step-by-step guide on how to achieve this in your Shopify store:
Create a Custom Section for Icons:
Add HTML for Icons:
Replace path-to-your-iconX.png with the actual paths to your icon images.
Style Icons with CSS:
Open the Assets folder and find the CSS file (often named theme.css or base.css).
Add the following custom CSS at the bottom to position the icons at the bottom of the screen on mobile:
/* Style for the mobile icons container */
.mobile-icons-container {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-around;
background-color: #fff; /* Optional: adds a background to the icons */
padding: 10px 0;
z-index: 1000;
}
/* Style for each individual icon */
.mobile-icon img {
width: 40px; /* Adjust icon size */
height: 40px; /* Adjust icon size */
}
/* Optional: Hover effect for icons */
.mobile-icon:hover {
opacity: 0.7;
}
You can adjust the width, height and background-color to fit your design. The icons will be spaced evenly across the bottom of the mobile screen.
Add the New Section to Your Theme:
{% section 'mobile-icons' %}
This will load your new mobile-icons.liquid section at the bottom of the page.
Save and Preview:
Just make sure to include the FontAwesome CDN link in your theme.liquid file if you use FontAwesome.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thanks & Regards
Akshay Bhatt