You changed a price, fixed a mistake, or want to show a plan that is no longer on offer. Crossing the old text out, like this, tells readers what changed without hiding it.
The good news: WordPress has strikethrough built in. You do not need a plugin or any code, and it takes about two clicks.
This guide shows three ways to strikethrough text in WordPress, plus how to cross out sale prices inside a table.
Quick answer
- Toolbar: select the text, click the もっと見る (down arrow) button in the block toolbar, and choose 取り消し線.
- Shortcut: press Shift + Alt + D on Windows or Control + Option + D on Mac.
- HTML: wrap the words in
<s>tags in the Code editor. - In a table: use テーブルバーグ, a free table block. Its Text element has the same Strikethrough option, which is perfect for sale prices.
What is strikethrough text?
Strikethrough draws a line through the middle of text. WordPress saves it as the HTML <s> tag, which means the text is no longer accurate or relevant, but you still want readers to see it.
Here are the most common ways to use it:
|
用途 |
例 |
Why it works |
|---|---|---|
|
Sale prices |
|
Shows the saving at a glance |
|
Updates and corrections |
Doors open at |
Readers see exactly what changed |
|
To do lists and roadmaps |
|
Marks finished items without deleting them |
|
Humor and tone |
I love |
Adds a playful aside |