Hi i would like to add some badges to my products page please i forgot how to do it
like the ones in the image i am using Dawn
Hi i would like to add some badges to my products page please i forgot how to do it
like the ones in the image i am using Dawn
This is BSS Commerce - Full-service eCommerce Agency. We’d love to suggest you this solution:
Step 1: Assign a tag to the product you want to add a badge to, access the product that needs to add a badge, scroll down to the “Production Organization” section and click on the “Tags” section:
Step 2: Assign the desired tag to the product, for example, add the “sale” tag for the products that will be on sale, add tag and click the “Save” button at the top to save:
Updating Media
Step 3: On the left side of the screen, with the Dawn theme, navigate to the file “sections/main-product.liquid”, and find the product.title section and add this code.
{% if product.tags contains 'sale' %}
Sale
{% endif %}
File after editing:
Results on the product page:
Above are the steps to display a simple badge below the product name, depending on the needs of displaying the specific badge, you can insert the above code in the corresponding positions, as well as edit the CSS to change the interface badge’s appearance.
Hope this can help you.
Kind regards,
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
You can use this app:
https://apps.shopify.com/product-labels-by-bss
Regards,
San