customization - How to display strikethrough text in button text (for special offer)

I'm trying to create a "Purchase for ~$20~ $1" button (using Elementor).I'm not sure how to achieve

I'm trying to create a "Purchase for ~$20~ $1" button (using Elementor).

I'm not sure how to achieve the strikethrough.

Also I would like the $1 to be in bold/red.

I suspect I need to dynamically replace the contents of the button using JS. But I'm not sure how to go about that or even if it's the best approach.

Alternatively I could use an image, I guess.

What would be a sensible approach?

I'm trying to create a "Purchase for ~$20~ $1" button (using Elementor).

I'm not sure how to achieve the strikethrough.

Also I would like the $1 to be in bold/red.

I suspect I need to dynamically replace the contents of the button using JS. But I'm not sure how to go about that or even if it's the best approach.

Alternatively I could use an image, I guess.

What would be a sensible approach?

Share Improve this question asked May 29, 2020 at 9:56 P iP i 1014 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It turns out that it is possible to use custom HTML inside the text box when you enter the text for the button:

Special offer: <span 
    style="text-decoration:line-through">$20</span> <span 
    style="color:#f00">$1</span>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742352717a4427833.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信