Badges on product images - DEBUT theme

New Member
5 0 0

Hi,

I have been searching the forums for some advice on this but unfortunately a lot of it is very old and I do not want to use an app to do this. I am happy to change the code myself, I just need to find some useful code. I want to add a badge icon to my product images that are 'new' and that have a specific product tag.

 

I have the icon loaded into files and have a URL for it.

 

Has anyone successfully done this using Debut and do you have a code snippet to share :)

 

Thanks.

0 Likes
Pathfinder
114 14 26

Hi BriefsGuy,

For Design, Development and custom changes Hire Me.
If your problem solved then Like & Accept this Solution.
Email ID: silencewebsolutions@gmail.com
0 Likes
New Member
5 0 0

I'm looking to add the badge to the image everywhere it appears or as a minimum in the collections and product pages.

0 Likes
Shopify Partner
1141 93 139

hi,

try this

Upload badges.png in assest

and

paste the code where you want show a badges

<img src="{{'badges.png' | asset_url }}" alt="badges">

 

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
New Member
5 0 0

That's not what I'm looking for 

0 Likes