Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024