Inserting Span Tags into rich text section

Topic summary

A user needs to insert <span class="money"> tags around prices in a Shopify rich text section to enable currency conversion based on visitor location through an app.

Problem identified:

  • Rich text editors don’t support direct HTML input
  • Entering span tags displays them as plain text rather than functional HTML

Solution approach:

  • Change the section from rich text to textarea field type, which allows HTML code
  • This requires modifying the section code directly

Status:
The original poster indicated they figured out the solution but didn’t share implementation details. Another user later requested the same information, with an offer to provide a tailored solution if they share their store URL.

The discussion remains open for others seeking similar guidance on adding custom HTML to Shopify sections.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hi guys,

I want to add span tags around the price in this rich text section on my homepage so that it works with an app to convert based on location. However, I don’t know how to add span tags as there isn’t a html option in the rich text editor. These are the tags I need to add in:

£42

Can anyone show me how I can get these tags in without them just showing up as text? Thanks!

1 Like

@houssamalissa

rich-text doesn’t allow to HTML code you have change richtext tor textarea

1 Like

How do I do that?

1 Like

@houssamalissa

can you please share that section code

1 Like

It’s ok i think I figured it out - thanks!

can you please share how to do that

1 Like

@beginnerhere Could you please share your store URL so I can check it and provide an appropriate solution? Let me know if there’s anything else you’d like me to look into.