2 Best and Verified Methods to Solve Image Alignment Problem [WordPress]

image alignment problem solved wordpress

As WordPress blogging platform is famous and known for easy to use but besides it has various problems and issues that occurs when creating a blog or website using this blogging platform.

Creating a quality post is the well-known tactic or technique for search engine optimization (SEO) and for driving traffic to your blog or website. In post, you should write more text, but a image is mandatory as it can represent idea more clearly to your users. So, inserting images inside post is very easy but if you are facing problems with your image alignment as we will discuss it in this post, then you are at right place.

Are you really screwed up of image alignment problem in WordPress? Don’t worry, we have implemented and tested different solutions but the result was not satisfactory. Even we were also facing the same problem in our blog, but now we have resolved it by our own research, and technique.

Keeping it secret will be injustice with you lovely people. So, we are sharing these 2 techniques and methods with you guys, just follow the easy steps and resolve the image alignment problem forever. tada….

Try and implement both methods, I am certain one will work, method 2 worked for us.


Method 1:

Step#1: Open your WordPress Dashboard.

Step#2: Go to Appearance>>editor 

Step#3: Go to Styles.css at the very bottom right.

Step#4: Press Ctrl+F and find “.aligncenter”.

Step#5: Replace it with the following code:

.aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

Step#6: Save it and you are done.


Method 2:

Repeat step 1, 2, 3.

Step#4: Press Ctrl+F and find “.entry a img”.

Step#5: Place the following three lines in between the curly brackets.

.single .entry a img{
      clear: both;
      margin-left: auto;
      margin-right: auto;

Save it and here you go… Hope it has helped you. If yes? then Don’t Forget to like and share it.

NOTE: if you guys really loved our post or article about the “2 Best and Verified Methods to Solve Image Alignment Problem [Wordpress]“, then we hereby warmly welcome you guys to share it with your friends and family members by just click on a single social media icons given below, Thanks in advance to crispylogs users.


I am Muhammad Naveed Baig Jokhio, the CEO and Founder of Crispylogs, I am doing Graduation from MUET in Computer Systems Engineering. I am a professional Article Writer, Web enthusiast, WordPress lover, a passionate Graphics Designer, Technology geek, Programmer and a Researcher.