Hello,
I am using the Dawn theme and I am trying to add a badge on the main landing page and on the item page. My site is globalvolunteerrecognitionprogram.com. The code that I am trying is below. I have attached picture of what the badge should look like and where I would like it to be. I have tried to make it work but the badges are not showing up or they are in the wrong spot. I appreciated any gudiance you can give me. Thanks!
{% if product.tags contains ‘freeshipping’ %}
{% endif %}
Hi @globalvolunteer I think your code is correct but your placement is not, you need to look into the placement and without looking into your theme code I will not be able to provide you the exact place where you can place this, so it will work for you.
If you will unable to implement the same then I’m happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
Best Regards
Sahil
Hello,
I am not sure where to put the code and that is why I posted on the board. I am using the Dawn theme. Which part of the code are you needing to look at? Card-product.liquid?
Hi @globalvolunteer I can’t tell you the exact file or file name without looking into the code file, and I am afraid that if you will paste the code here then also it will not make that much difference because as you know that different template use to render different section, so I need to look into that.
And you will be unable to paste all the code here, and even if you do manage to paste it here, I will not be able to take the look into the code here.
If you need any other help then please feel free to ask the same.
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
Best Regards
Sahil