I can't find how to add the product type to product page in Dawn theme

Solved

I can't find how to add the product type to product page in Dawn theme

Angelfab
Excursionist
36 1 14

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

Accepted Solution (1)

devmont-digital
Shopify Partner
132 31 34

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 %}

 

 

Found our answer helpful? If so, Don't forget to show your support by liking and accepting the solution.
Looking for more help and expert consultation? Feel free to contact us at Shopify Expert or visit our website www.devmontdigital.io
Hire us for your project by simply emailing us at sales@devmontdigital.io

View solution in original post

Replies 2 (2)

devmont-digital
Shopify Partner
132 31 34

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 %}

 

 

Found our answer helpful? If so, Don't forget to show your support by liking and accepting the solution.
Looking for more help and expert consultation? Feel free to contact us at Shopify Expert or visit our website www.devmontdigital.io
Hire us for your project by simply emailing us at sales@devmontdigital.io
Angelfab
Excursionist
36 1 14

Thank you so much for your fast answer! It worked perfectly and I might even be able to duplicate it for other purposes! 😙