Inherently, inserting images in WordPress galleries puts the given images to the left most in their respective zones. When working with different sizes of image, this makes large images "stick" to the next image, while other smaller images do not. A solution to this would be centering the images. Can this be done through some plug-in ?

  • Have you tried the solution offered? Did it work for you? If not we should try finding out why. If yes, as per site guidelines when an answer addresses your question, you should accept it and maybe upvote it so others can benefit as well. – marikamitsos Nov 20 '19 at 5:57

Classic Editor

When working in the Classic Editor you can not by default.
You will have to use some lines of custom CSS code (depending on your theme, layout etc).
As an alternative you can use one of the plenty available gallery plugins
(I would personally go with the custom css since it is a very simple thing you ask for)

Blocks (Gutenberg editor)

When working with blocks you can center align your gallery block through an option as shown in the image

Center WordPress Gutemberg Gallery

  • I didn't do it this way, but this would probably work. – J. Schmidt Nov 20 '19 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.