Adding "strike through" style in a rich text element from a CMS collection

Hi All,

I’m having trouble styling text in a rich text element that is bound with a cms collection. Does anyone know how I can do that? It’s a couple of lines that need to have the strikethrough.

Here is my public share link: LINK
(how to access public share link)

Unfortunately, inside a RTF field you can’t style a string of text that way, unless you overrode the styling of one of the elements that are supported. Example > give the Rich Text element a class. Then modify the styling for All Italics, when nested inside of “class” you gave to the RTE. Of course this will effect all italicized text on all dynamic pages inside. You could do that to an H6 element, which might be a better target.



Elements you can create inside of a rich text:
  • Paragraphs
  • Headings (H1-H6)
  • Images
  • Image Captions
  • Image alt attributes
  • Block quotes
  • Unordered Lists (bulleted)
  • Ordered Lists (numbered)
  • Videos (Youtube, Vimeo)
  • Rich media (Google maps, SoundCloud, Imgur, Giphy, Codepen, and more)

For any of the text elements you can add additional formatting:

  • Links (URL, page, email, etc)
  • Bold text
  • Italic text

Hi there

Thanks for responding. Kinda sucks that you can’t style text in a RTE field. Anyways, I found a simple workaround. I used a strikethrough generator and added that text in the collection editor. It works but the only drawback is I can’t use a custom font on the added text. It’s a good enough solution for now though.


1 Like

I will add that you can create and style spans in text fields / paragraph fields. Glad you found a solution that worked for you.

Hello! Could You please help me with this? As I understand not all fonts allow strike trough. Image added. Or I did it wrong?

@Mia - If you have that font installed on your computer you could give it a check; I don’t. I can’t see the full element in the designer without you sharing a project read-only.


In photoshop it is all good

@mia - So It seems that the strikethrough works on deskop (chrome / edge tested) but not on Mobile. I tested an Samsung S20 w/chrome and and iPhone12 with Safari, Chrome (both failed).

I would suggest testing another font.