Videos are one of the most powerful ways to engage visitors on your website—but poor alignment can make your content look unpolished and unprofessional. By default, videos in WordPress may appear left-aligned, especially if they don’t fill the full content width.
The good news: centering a video in WordPress is quick and easy—no coding required in most cases.
In this guide, you’ll learn how to center align videos in WordPress using the Block Editor (Gutenberg), Classic Editor, and custom CSS when needed.
Why Centering Videos in WordPress Matters
A properly centered video:
- Improves visual balance and readability
- Keeps users focused on your content
- Creates a more professional, modern layout
- Enhances mobile responsiveness
Misaligned videos can distract users and disrupt your page design, which ultimately hurts engagement.
Method 1: Center Align a Video in Gutenberg (Block Editor)
If you’re using the modern WordPress editor (Gutenberg), this is the easiest method.
Step-by-Step Instructions
- Open your post or page in WordPress
- Click the “+” (Add Block) button
- Select the Video block or paste a video URL (YouTube, Vimeo, etc.)
- Click on the video block
- In the toolbar above the block, select “Align Center”
WordPress provides built-in alignment options including left, center, right, wide, and full width.
Pro Tip
If your video still looks off-center, adjust the width using block settings or drag the resize handles before applying center alignment.
Method 2: Center Align Video in the Classic Editor
Still using the Classic Editor? No problem.
Visual Editor Method
- Click Add Media and insert your video
- Select the video inside the editor
- Click the center alignment button in the toolbar
HTML (Text) Method
If the visual editor doesn’t work, switch to the Text tab and wrap your video embed code like this:
<!– Your video embed code –>
</div>
This forces the video to center regardless of editor limitations.
Method 3: Center Align Videos with Custom CSS
If your theme overrides alignment settings, CSS gives you full control.
Option 1: Quick Inline Fix
Add a custom class to your video block:
Then add this CSS:
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
Option 2: Theme Customizer
- Go to Appearance → Customize → Additional CSS
- Paste the CSS above
- Publish your changes
This is especially useful when alignment settings don’t work due to theme conflicts—a common issue WordPress users run into.
Method 4: Center Videos Using Page Builders (Elementor, etc.)
If you’re using a page builder:
Elementor Example
- Edit your page with Elementor
- Drag in the Video widget
- Go to the Style tab
- Set Alignment → Center
Page builders make alignment extremely simple with visual controls—no code required.
Common Issues (And Fixes)
Video Won’t Center
- Your theme may override alignment → use custom CSS
Looks Centered in Editor But Not Live
- Clear cache (browser + plugins)
- Check for conflicting plugins
Video Too Wide
- Set a max width (e.g., 800px) before centering
Not Mobile Responsive
- Use percentage widths (e.g., 100%) instead of fixed pixels
Best Practices for Centering Videos
- Keep video widths consistent across pages
- Avoid full-width videos unless intentional
- Use responsive embeds for mobile devices
- Pair videos with supporting text or captions
- Test on desktop and mobile before publishing
Final Thoughts
Centering a video in WordPress is simple—but doing it correctly makes a big difference in how your content is perceived.
For most users, the Gutenberg editor’s built-in alignment tools will do the job. For more control, CSS and page builders offer flexible alternatives.
If your videos look off, don’t ignore it—fixing alignment is a quick win for both user experience and SEO.
We Want To Talk To You About Your Marketing Goals.
Let’s Supercharge Your Online Growth!
By submitting the form, you agree to the Terms of Service and Privacy Policy
We Want To Talk To You About Your Marketing Goals.
Let’s Supercharge Your Online Growth!
