Free Guide: 5 Website Fixes to Attract More Leads ✅ Download Now! ✅

Images won’t align in WordPress editor

Rarely you may be working with a WordPress theme that won’t allow you to align images via the WordPress editor. If the WordPress theme you are working with does not let you position images so that they float to the left or right there may be a lack of styling in the CSS. Luckily, if this is your problem there is an easy fix.

Try opening your CSS stylesheet (using an FTP client) in the WordPress theme folder and add the following styling code:

img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.aligncenter{
    display: block;
    margin-left: auto;
    margin-right: auto;
}
img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
}
img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
}
.alignright {
    float: right;
}
.alignleft {
    float: left;
}

Hopefully now when you try to align images they should work just fine!

Free Download

Free Guide: 5 Quick Fixes to Get More Leads from Your Website

After 18+ years of building results-driven websites for business owners, I’ve learned what actually works.

This free guide breaks down five simple changes you can make this week to turn your website into a lead-generating machine. No redesign required.

5 Things Every Business Owner Can Fix On Their Website In The Next Week To Get More Leads

"*" indicates required fields

I take your privacy seriously – I’ll never share your information with anyone. Privacy Policy.