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 Alignment in WordPress: Causes and Fixes

How to Fix Alignment in WordPress: Causes and Fixes

Short answer

Select the block that looks wrong and check its Align text and block alignment options in the toolbar. If that does not help, check the parent block, your theme's content and wide width settings, image floats and any theme CSS that overrides your choice, then clear your cache.

Key takeaways

  • Align text moves words; block alignment moves the whole block.
  • Wide and full width only work if the theme and parent block allow it.
  • Left or right image alignment makes text wrap around the image.
  • Center buttons by aligning the parent Buttons block.
  • Editor and live site differences usually mean theme CSS or cache.

How do you fix alignment in WordPress?

Select the block that looks wrong, check its alignment controls in the toolbar and sidebar, then look at theme width settings and custom CSS if the editor options do not fix it.

Alignment problems feel random, but they almost always come from one of a few places: the block's own settings, the theme's layout rules, image floats, or CSS that overrides what you chose.

This guide goes through each type of alignment problem, how to spot the cause, and the fix. Start with the section that matches what you see.

Why does alignment go wrong in WordPress?

Alignment usually breaks because of a mix-up between text alignment and block alignment, theme layout limits, floated images, or CSS from a theme or plugin.

Here is a quick map of symptoms and causes:

SymptomLikely causeWhere to fix
Text will not centerAlignment set on wrong block or parentBlock toolbar, Align text
Wide or full width does nothingTheme lacks wide-align supportTheme settings or theme.json
Text wraps oddly around an imageImage floated left or rightImage block alignment
Looks fine in editor, wrong on siteTheme CSS or cacheAdditional CSS, clear cache
Fine on desktop, broken on mobileFixed widths or columns not stackingColumns settings, responsive CSS
Columns content not lined upVertical alignment not setColumns block toolbar

Most fixes take a minute once you know which setting is responsible.

How do you fix text alignment in a block?

Select the paragraph or heading, click the Align text icon in the block toolbar, and choose left, center or right.

The block editor has two different alignment tools, and mixing them up is the most common cause of confusion:

  • Align text moves the words inside the block. It looks like lines of text.
  • Align (block alignment) moves the whole block, such as making it wide, full width, or centered as a unit.

If centering text does nothing, check that you selected the right block. Text inside a Group or Columns block may need to be aligned on the inner block, not the outer one. Use the List View (the stacked lines icon at the top left) to select the exact block.

The CSS behind this is the text-align property. Our guide on justifying paragraphs covers the justify option, which the toolbar does not always show.

Why do wide and full width alignment not work?

Wide and full width only work when your theme supports them and the block sits in a container that allows it.

Classic themes must opt in to wide alignment. If the theme does not, the Wide width and Full width options are missing or have no effect. Block themes control this through content and wide sizes set in theme.json.

Things to try:

  1. Check the parent block. A block inside a Group with constrained layout can only stretch as wide as that group allows. Select the parent Group and set it to full width or change its layout to allow wide children.
  2. Check the template. Some page templates have a narrow sidebar layout. Try a full-width template from the Template option in the page sidebar.
  3. Check theme settings. Many themes have a container or content width option in the Customizer or Site Editor.

For block themes, the global settings and styles documentation explains how content width and wide width are defined. If you are unsure which kind of theme you have, our guide to block themes vs classic themes explains the difference.

How do you fix image alignment and text wrapping?

Select the image, choose Align in the block toolbar, and pick None, Left, Center or Right, keeping in mind that Left and Right make text wrap around the image.

Left and right alignment float the image. Text after it flows down the side. That is great for a small image in an article and messy for a large one.

Fixes for common image issues:

  • Image will not center. Choose Align center. If it still sits left, the image may be inside a block that is not full width.
  • Text squeezes next to a big image. Set alignment to None or Center so text sits below.
  • Next heading jumps up beside the image. The float is still active. Add a Spacer, or put the image and text in a Columns block instead.
  • Caption not aligned. Captions follow the image's alignment, but theme CSS may override them.

The official Image block documentation lists all alignment and size options.

How do you fix columns and vertical alignment?

Select the Columns block or a single column and use the vertical alignment control to line items up at the top, middle or bottom.

Uneven columns are a common complaint, for example a button in one column sitting higher than the button next to it. Ways to fix this:

  • Use Change vertical alignment on the Columns block to align all columns the same way.
  • Give the text in each column a similar length, or set a minimum height.
  • For cards with a button at the bottom, use a Group with a Stack layout and set the justification so the button sits at the end.

On mobile, the Columns block stacks by default. If columns stay side by side and squash content, make sure Stack on mobile is switched on in the block settings. See the Columns block documentation for details.

How do you center a button or other element?

Select the Buttons block (the parent of the button) and choose Justify items center in the toolbar.

A single Button lives inside a Buttons block. Aligning the inner button often does nothing. Select the parent with the List View, then set justification to center.

The same idea applies to Social Icons, Navigation and other blocks that hold several items. Our step-by-step guide on centering a button in WordPress covers the block editor, Elementor and CSS methods.

Why does alignment look right in the editor but wrong on the live site?

This happens when theme CSS on the front end overrides your editor choice, or when a cache is still serving the old version of the page.

First, clear every cache: your caching plugin, server cache and any CDN. Then reload the page in a private window. Our guide to clearing the cache in WordPress covers each layer.

If it is still wrong, inspect the element:

  1. Right-click the misaligned item and choose Inspect.
  2. Look at the styles panel for rules like text-align, float, margin or max-width.
  3. Note which file the rule comes from, such as the theme's style.css or a plugin.

Your browser's developer tools can show this clearly. The Chrome DevTools CSS guide explains how to read the styles panel.

Once you know the rule, you can override it in Appearance > Customize > Additional CSS or the Site Editor's custom CSS. If your changes still do not appear, see our guide on CSS changes not showing.

How do you fix alignment that breaks on mobile?

Mobile alignment problems usually come from fixed widths, columns that do not stack, or alignment set only for desktop in a page builder.

Check these points:

  • Fixed pixel widths on images or groups can push content off screen. Use percentages or let blocks fill the width.
  • Columns not stacking can squeeze text into narrow strips. Turn on stacking.
  • Page builder device settings. In Elementor and similar builders, alignment can be set per device. Switch to the mobile view in the editor and set alignment there too.
  • Long words or URLs can stretch a layout. Shorter link text helps.

Always preview on a real phone, not just a narrow browser window, before you publish.

Can a plugin or theme update break alignment?

Yes, theme and plugin updates can change CSS, and a conflict between two stylesheets can shift layouts after an update.

If alignment broke right after an update:

  1. Check whether the theme changed its layout settings or default widths.
  2. Switch temporarily to a default theme like Twenty Twenty-Five on a staging site to see if the theme is the cause.
  3. Deactivate plugins that add styles, such as block libraries or page builders, one at a time.

Our plugin conflict guide walks through this process safely. Report the issue to the theme or plugin author if you find the cause, since they may already have a fix.

How do you keep alignment consistent across the site?

Set layout widths and spacing globally in your theme or Site Editor styles, and avoid fixing every block by hand.

Good habits:

  • Use global styles for content width, wide width and block spacing.
  • Use patterns for repeated layouts, so alignment is correct every time.
  • Avoid stacking manual margins on many blocks.
  • Keep custom CSS in one place and comment what each rule does.

When alignment is controlled in one place, a single change fixes the whole site instead of dozens of pages.

Frequently asked questions

Why is there no wide or full width option in my editor?

Your theme does not declare support for wide alignment, or the block sits inside a parent with a constrained layout. Try selecting the parent Group and changing its layout, use a full-width page template, or switch to a theme that supports wide and full width blocks.

How do I center an image in WordPress?

Select the Image block, click the Align icon in the toolbar and choose Align center. If it still sits to the left, the image may be inside a narrow parent block or your theme CSS may override it. Check the parent block and inspect the element in your browser.

Why does my text wrap around an image?

The image is aligned left or right, which floats it and lets text flow beside it. Change the image alignment to None or Center so text starts below the image. For side-by-side layouts, a Columns block gives more control.

Can I justify text in the block editor?

Justify is not always shown in the default text alignment menu. Some themes and the Classic editor offer it, or you can add a small CSS rule. Justified text can create uneven gaps between words on narrow screens, so use it with care.

Why is my alignment different on mobile?

Mobile layouts change because columns stack, widths shrink and page builders store separate settings per device. Check the mobile view in your editor, turn on column stacking, avoid fixed pixel widths and set alignment for mobile separately in your page builder.

Sources

  1. Image block WordPress.org
  2. Columns block WordPress.org
  3. Global Settings and Styles WordPress Developer Resources
  4. text-align MDN Web Docs
  5. View and change CSS Chrome for Developers

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.