Hello @jason12345
To add a subheader or additional text to each product in the featured collection on your Dawn theme homepage, you’ll need to modify the theme code.
Try these steps: it might be helpful to you-
-
Online store> themes> actions >edit code> sections > locate the file > featured-collection.liquid.
-
In this file, you should see a code block that loops through the products in the featured collection. It might look something like this:
{% for product in section.settings.products %}
### {{ product.title }}
{{ product.price | money }}
{% endfor %}
For subheader:
{% for product in section.settings.products %}
### {{ product.title }}
#### {{ product.metafields.namespace.key }}
{{ product.price | money }}
{% endfor %}
- In the modified code, replace ‘namespace.key’ with the actual path to your metafield. If you haven’t set up metafields yet, you’ll need to create them first. You can do this using a Shopify app or by manually adding metafields to your products. For example, if you created a metafield with the namespace “extra_info” and the key “sub_title” for each product, you would replace ‘namespace.key’ with ‘extra_info.sub_title’.
-Save the changes to the file by clicking on the “Save” button.