What's your biggest current challenge? Have your say in Community Polls along the right column.

How can I add Rich Text metafields to Dawn theme product pages?

How can I add Rich Text metafields to Dawn theme product pages?

scottc11
Visitor
2 0 0

I am using the Dawn theme, and I am trying to add some Rich Text metafields to my product pages. 

 

I have "Rich Text" selected as the type of metafield, but it has no where close to the functionality of the "Description" field that the Dawn product page ships with. 

 

Screen Shot 2023-05-29 at 8.17.40 PM.png

Screen Shot 2023-05-29 at 8.18.53 PM.png

Is there any way to set a metafield to the field in the first image?

Replies 3 (3)

scottc11
Visitor
2 0 0

Here is the solution I figured out on my own:

 

  1. Create a new "Page" with all the unique content you want to display for a specific product
  2. Create a new metafield on the Product model and make it of type "Page"
  3. You can now link the page you created in step 1 to that metafield
  4. In your custom product theme template, add a "page" section, and then dynamically link the metafield you just created (using the "Connect dynamic source button")
wingra
Shopify Partner
8 0 13

This seems like a pretty genius work-around, but would rapidly become terribly difficult to manage. I don't understand why these forums can support images, video, and the rest of the "rich text" types, but metafields are dumbed down to simply headings, bold, italic, and lists?!

Drazdauskas
Explorer
60 0 13

I just wanted to say Thank you!!

Solved my problem with your solution - it would be great if the rich text editor could just contain the same abiity that the product description has.

it's also a shame that the page that you create also has to be visible...

Are you still using this soluton or have you found a better way?