Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Troubleshooting

How to Fix Formatting in WordPress: Causes and Fixes

How to Fix Formatting in WordPress: Causes and Fixes

Short answer

Most WordPress formatting problems come from hidden styles pasted from Word or Google Docs, theme CSS that differs from the editor, or old Classic content. Paste as plain text, reset custom block styles, convert Classic blocks to blocks, clear your caches, and test for plugin or theme conflicts.

Key takeaways

  • Paste as plain text with Ctrl+Shift+V to avoid hidden styles.
  • Reset block typography and color to remove pasted formatting.
  • Clear caches when the live site looks different from the editor.
  • Convert old Classic blocks into separate blocks.
  • Use real List, Heading and Table blocks, not fake formatting.
  • Test plugin conflicts on staging if formatting broke after an update.

Why is my WordPress formatting messed up?

WordPress formatting usually breaks because text was pasted with hidden styles from Word or Google Docs, the theme's CSS styles content differently than the editor, or content was moved between the Classic and block editors.

The good news is that formatting problems rarely mean anything is broken. Most come from extra HTML or CSS that you can remove.

Start by matching what you see to a likely cause:

SymptomLikely causeFix
Odd fonts, colors or sizes after pastingHidden styles from Word or Google DocsPaste as plain text, reset block styles
Big gaps or missing gaps between paragraphsEmpty paragraphs or theme spacingDelete empty blocks, adjust spacing
Looks fine in editor, wrong on live siteTheme CSS or cacheClear cache, check theme styles
Everything in one Classic blockOld post from the Classic EditorConvert to blocks
Lists, headings or bold lostContent edited in HTML or a plugin stripped tagsRebuild with proper blocks
Layout broken after an updatePlugin or theme conflictTest with plugins disabled

How do I fix formatting after pasting from Word or Google Docs?

Paste as plain text with Ctrl+Shift+V (Cmd+Shift+V on a Mac), then reapply headings, bold and lists with WordPress blocks, so no hidden styles come along.

When you paste normally, the editor tries to convert the source formatting. It handles headings and lists well, but may also carry over:

  • Inline font families and sizes.
  • Colors, often black text that ignores your theme's dark mode.
  • Extra <span> tags and empty paragraphs.
  • Odd line breaks inside paragraphs.

The plain-text shortcut works in most browsers. Google lists it among its Google Docs keyboard shortcuts, and the same key combination works in the WordPress editor.

If the content is already pasted, fix it block by block:

  1. Select the problem block.
  2. In Styles > Typography and Color, click Reset on any custom value.
  3. Use Edit as HTML from the block's three-dot menu to delete stray <span style=...> tags.
  4. Delete empty paragraph blocks.

For long documents, pasting as plain text and rebuilding structure is often faster than cleaning up.

Why does my post look different on the live site?

The editor and the front end load different CSS, so if your theme does not provide editor styles, or a cache serves old CSS, the live page will look different from what you see while editing.

Check these first:

  • Clear every cache. That means your caching plugin, server cache, CDN and browser. Then load the page in a private window.
  • Compare with a default theme. Switch to a default theme such as Twenty Twenty-Five on a staging copy. If it looks right, the original theme's CSS is the cause.
  • Inspect the element. Right-click the text and choose Inspect to see which CSS rule applies.
  • Check custom CSS. Look in Appearance > Customize > Additional CSS or Styles > Additional CSS for rules that target content.

Themes that support block editor styles show a closer preview while editing. If yours does not, the mismatch is expected and you will need to preview often.

How do I fix spacing between paragraphs and lines?

Delete empty paragraph blocks, then set paragraph and line spacing through global styles or the block's Dimensions and Typography panels rather than pressing Enter to add gaps.

Common spacing mistakes:

  • Pressing Enter twice creates an empty Paragraph block. It adds an unpredictable gap.
  • Shift+Enter adds a line break inside one paragraph, not a new paragraph. Pasted text often contains many of these.
  • Spacer blocks stacked between sections create inconsistent gaps across pages.

To control spacing properly, use Styles > Typography > Line height on a block or globally. For gaps between blocks, use block spacing in global styles or margin in the Dimensions panel. See how to change paragraph spacing in WordPress for exact steps.

MDN's line-height reference explains why a unitless value such as 1.6 usually works best.

How do I fix old posts stuck in a Classic block?

Open the post, select the Classic block, and click Convert to blocks in its toolbar or three-dot menu, which splits the old content into separate Paragraph, Heading, List and Image blocks.

Posts written before WordPress 5.0, or with the Classic Editor plugin, open as one large Classic block. Formatting inside it can look cramped or behave oddly.

After converting:

  1. Check headings converted to Heading blocks at the right level.
  2. Check images kept their alignment and captions.
  3. Look for shortcodes that became plain text, and wrap them in Shortcode blocks if needed.
  4. Preview before updating.

Keep a revision you can restore. If conversion makes things worse, use Revisions in the sidebar to go back.

Old Classic content relies on WordPress automatically adding paragraph tags with the wpautop function. Some themes or plugins disable it, which removes paragraph breaks and makes text run together.

Why did my formatting disappear after switching editors?

Switching between the Classic and block editors, or editing in the code view, can drop formatting the other editor does not understand, especially custom HTML, empty tags and inline styles.

Typical cases:

  • Block to Classic. Block comments like <!-- wp:paragraph --> stay in the HTML. Some layouts lose spacing or styling.
  • Classic to blocks. Unusual HTML lands in Custom HTML or Classic blocks.
  • Code editor edits. Invalid HTML triggers This block contains unexpected or invalid content.

Pick one editor per site and stay with it where possible. If you must switch, see how to go back to the classic editor for a cleaner way.

For invalid block warnings, click Attempt recovery first. If that fails, choose Convert to HTML or rebuild the block.

Could a plugin or theme be causing formatting problems?

Yes, plugins that filter content, such as old shortcode plugins, page builders, optimisation tools or editor add-ons, can strip tags, add wrappers or load CSS that changes how text appears.

Signs it is a conflict:

  • Formatting broke right after an update.
  • Only some pages are affected, often ones using a specific plugin feature.
  • Minify or combine CSS options were recently changed.

To test, use a staging site and deactivate plugins one by one, or use the Health Check plugin's troubleshooting mode. Our guide on fixing a plugin conflict explains the process.

Optimisation plugins deserve special attention. Aggressive CSS minification or removing unused CSS can drop the rules that style headings, lists or blockquotes.

How do I fix formatting in lists, headings and tables?

Rebuild broken lists, headings and tables using the proper blocks, because text that only looks like a list or heading has no real structure and will format unpredictably.

Quick fixes:

  • Fake lists. Lines starting with dashes or numbers typed by hand. Select the block, click the block icon, and transform it to a List block.
  • Fake headings. Bold, large paragraphs. Transform them to Heading blocks so screen readers and search engines understand them.
  • Broken tables. Pasted tables with fixed widths. Recreate them in a Table block, or paste into a new Table block directly.

Real structure also helps SEO and accessibility. Heading levels should go in order, H2 then H3, without skipping.

How do I keep formatting clean in future?

Write directly in the block editor or paste as plain text, use global styles instead of per-block styling, avoid empty paragraphs, and preview on the live theme before publishing.

A simple routine for every post:

  1. Draft anywhere you like.
  2. Paste into WordPress as plain text.
  3. Apply headings, lists and links with blocks.
  4. Use block settings only for real exceptions.
  5. Preview on desktop and mobile.

If you need aligned text, read how to justify a paragraph in WordPress first, since justified text can create uneven gaps.

Teams that write in Google Docs may want an import plugin that converts documents to clean blocks. Check reviews and update dates before installing one. The Classic Editor plugin page is also worth reading if your team is split between editors.

Frequently asked questions

How do I remove formatting from pasted text in WordPress?

Paste with Ctrl+Shift+V on Windows or Cmd+Shift+V on a Mac to drop all styles. For text already pasted, reset the block's typography and color settings, then use Edit as HTML to delete leftover span tags with inline styles.

Why are there big gaps between my paragraphs?

Usually empty paragraph blocks from pressing Enter twice, spacer blocks, or large margins in the theme. Delete the empty blocks first, then adjust spacing through global styles or the block's Dimensions panel instead of adding blank lines.

Why does my post look fine in the editor but not on the site?

The editor and the live site load different stylesheets, and caches may serve old CSS. Clear every cache, check the page in a private window, and inspect the text with browser tools to find the CSS rule causing the difference.

What does Convert to blocks do?

It splits an old Classic block into separate Paragraph, Heading, List and Image blocks so you can edit each one properly. Preview the result before updating, and use revisions to restore the old version if the conversion causes problems.

Can a plugin break WordPress formatting?

Yes. Content filters, page builders and CSS optimisation settings can strip tags or remove styles. If formatting broke after an update, test on staging by deactivating plugins one at a time until the formatting returns, then contact that plugin's developer.

Sources

  1. wpautop() function reference WordPress Developer Resources
  2. Classic Editor WordPress.org Plugins
  3. Keyboard shortcuts for Google Docs Google Docs Editors Help
  4. line-height MDN Web Docs

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.