Anyone have any or can provide any custom liquid/CSS snippet to add a home icon (with link) to the top left of the mobile main menu in Halo theme?
Like this
Goal: add a clickable Home icon to the top-left of the mobile (hamburger) menu in the Halo Shopify theme.
Context: The requester shared a preview URL of an unpublished theme. The intent was to place the icon inside the mobile menu drawer, linking to the homepage.
Proposed quick fix: One participant suggested a fast, non-ideal approach:
Issues: An error flagged missing width and height attributes on the img tag. After adding them, the icon still did not render on the frontend. Another participant asked if the goal was to replace an existing icon; further code guidance was unclear, and an offer was made to be added as staff to investigate.
Outcome: The original poster ultimately solved it themselves. No final code or steps were shared publicly. Status: resolved, but no documented solution for others.
Anyone have any or can provide any custom liquid/CSS snippet to add a home icon (with link) to the top left of the mobile main menu in Halo theme?
Like this
Hi @Jasoliya
Thanks for the reply.
I’m currently working on an unpublished theme at the moment.
The url is: https://y1hz4akx21bmfaxh-78729543967.shopifypreview.com
Try to add this code, this is not proper solution but its fast solution for you
.cd_a{padding-left: 19px; margin-top: 12px; display: block; max-width: 50px; padding-bottom: 7px;}
.cd_a img{width:100%;}
.halo-sidebar-wrapper .list-menu.list-menu--inline{border-top: 1px solid #eee;}
document.querySelector('.list-menu--inline').insertAdjacentHTML('beforebegin', '

');
Note: you can change image to your
Got this error in theme.liquid snippet
“Missing width and height attributes on img tag”
![]()
I’ve added these missing attributes with this
document.querySelector('.list-menu--inline').insertAdjacentHTML('beforebegin', '

');
However the icon isn’t showing frontend
You want to replace this icon?

try to add this
Still no joy unfortunately ![]()
add me staff (jasoliyabrijesh123@gmail.com)) i will check,
No, it was adding a home icon inside the hamburger menu, I’ve managed to do it now thanks anyway.
I’ve managed to do it now thanks anyway.