Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi there,
I'm using Dawn theme and I wanted to add the product type* under the product title on the product page.
When I'm on the online editor, I can add quite a lot of elements, including text with a dynamic source, but the product type is nowhere to be seen.
In last resort, I'm considering creating a custom metafield with the product type so that I can access it and display it as a dynamic source, but it sounds completely stupid to create a second instance of this field which already exists as a "base" field for all products.
Please forgive my bad English and lack of specific technical vocabulary. Thanks in advance for your answers, tips and suggestions.
* For those wondering why I want to this: I think it could have a positive impact on our indexation
Solved! Go to the solution
This is an accepted solution.
Hello @Angelfab,
Navigate to Online Store -> Themes -> Customize, then go to the default product and click on "Add block". Select "Custom content" and add the above Liquid code.
{% if product.type %}
<p>Product Type: {{ product.type }}</p>
{% endif %}
This is an accepted solution.
Hello @Angelfab,
Navigate to Online Store -> Themes -> Customize, then go to the default product and click on "Add block". Select "Custom content" and add the above Liquid code.
{% if product.type %}
<p>Product Type: {{ product.type }}</p>
{% endif %}
Thank you so much for your fast answer! It worked perfectly and I might even be able to duplicate it for other purposes! 😙
How to do the same for VENUE theme? Cant fond how to disply product type in product page