dawn theme - add icon before an menu item

Solved

dawn theme - add icon before an menu item

xnyjyh
Trailblazer
364 0 39

How can i add an icon to a menu item link? Thanks!

 

"ICON - MENU ITEM LINK"

Accepted Solutions (3)

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @xnyjyh

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </body> tag:

<script>
let philanthropy_link = document.querySelector('#HeaderMenu-howah-philanthropy');
if(philanthropy_link) {
   philanthropy_link.insertAdjacentHTML('afterbegin', `<img src="https://cdn.shopify.com/s/files/1/0564/3046/1030/files/donation.svg?v=1725669614" width="34" height="34" style="margin-right: 5px">`)
}
</script>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍



Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @xnyjyh

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

 

<style>
a#HeaderMenu-howah-philanthropy {
    padding-top: 8px !important;
}
</style>

 

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @xnyjyh

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </body> tag:

<script>
let philanthropy_drawer_link = document.querySelector('#HeaderDrawer-howah-philanthropy');
if(philanthropy_drawer_link) {
   philanthropy_drawer_link.insertAdjacentHTML('afterbegin', `<img src="https://cdn.shopify.com/s/files/1/0564/3046/1030/files/donation.svg?v=1725669614" width="34" height="34" style="margin-right: 5px">`)
}
</script>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 19 (19)

BSSCommerce-HDL
Shopify Partner
2305 848 1065

@xnyjyh, Can you kindly share the details of your problem (screenshot) with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @xnyjyh

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </body> tag:

<script>
let philanthropy_link = document.querySelector('#HeaderMenu-howah-philanthropy');
if(philanthropy_link) {
   philanthropy_link.insertAdjacentHTML('afterbegin', `<img src="https://cdn.shopify.com/s/files/1/0564/3046/1030/files/donation.svg?v=1725669614" width="34" height="34" style="margin-right: 5px">`)
}
</script>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍



Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @xnyjyh

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

 

<style>
a#HeaderMenu-howah-philanthropy {
    padding-top: 8px !important;
}
</style>

 

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

xnyjyh
Trailblazer
364 0 39

You da bomb as usual! Thanks so much! 🙂

BSSCommerce-HDL
Shopify Partner
2305 848 1065

@xnyjyh, No problem. Glad to help you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

xnyjyh
Trailblazer
364 0 39

Just realized it did not do this to the mobile menu. how can I add it to that?

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @xnyjyh, You want the icon to do this right?

BSSCommerceHDL_0-1726037553691.png

 

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

xnyjyh
Trailblazer
364 0 39

correct, that one

xnyjyh
Trailblazer
364 0 39

Alos, no idea why, but my mobile menu scrolls sideways when open and the main content under page scrolls too. is there a way to fix that too? like so its just fixed and nothing scrolls at all when menu open?

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @xnyjyh, For no scrolls at all when menu open

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
body:has(.menu-drawer-container.menu-opening) {
    overflow-y: hidden ! important;
}
</style>

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

xnyjyh
Trailblazer
364 0 39

kinda worked, still moves sideways and upwards, but when you touch the menu to move it, the menu snaps into fixed state after. 

BSSCommerce-HDL
Shopify Partner
2305 848 1065

@xnyjyh, I don't quite understand what you mean.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @xnyjyh

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </body> tag:

<script>
let philanthropy_drawer_link = document.querySelector('#HeaderDrawer-howah-philanthropy');
if(philanthropy_drawer_link) {
   philanthropy_drawer_link.insertAdjacentHTML('afterbegin', `<img src="https://cdn.shopify.com/s/files/1/0564/3046/1030/files/donation.svg?v=1725669614" width="34" height="34" style="margin-right: 5px">`)
}
</script>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

xnyjyh
Trailblazer
364 0 39

Works great, thanks!

JGTQM2018
Tourist
15 0 2

Hi @BSSCommerce-HDL 

I tried your code and adapted to my menu id but now the text of the menu is on the far left, how do i adjust it and how do i make it appear on mobile? 

 

Screenshot 2024-10-02 at 4.42.17 PM.png 

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @JGTQM2018Can you kindly share your store link with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

JGTQM2018
Tourist
15 0 2

 Hi @BSSCommerce-HDL , thank for the reply!

 

Of course, https://aiwa-int.com.au/, I've removed the code for now, please let me know how i can fix it 🙂 

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @JGTQM2018, Pls add back the previous code. I added more with this code: 

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
.header__submenu .header__menu-item {
    justify-content: unset !important;
}
</style>

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍



 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

JGTQM2018
Tourist
15 0 2

@BSSCommerce-HDL  Thank you for your reply, I really appreciate it !

 

I've re added the code but the icons only show on menu type " Mega menu" and I want to use it as menu type Drawer, also its not showing up in mobile either menu type ? 😞 

 

Thank you for your help!