Images do not get centered on WP backery and normally

Hi, this is weird, I have an issue with centering elements and images since a couple of days (before it was all good).

Theme: X Theme
Last Version of wordpress
I added a plugin for optimizing images called Imagify the other day (but it doesn’t seem to be the culprit)

Example 1: This is how the image is centered on the backhand of my home page www.keepcalmandtravel.com

And this is how it appears:

The same happens in one article : https://www.keepcalmandtravel.com/costa-smeralda-best-beaches-to-visit-map/

The images are centered on the backhand only, here is how they appear:

I tried to use the WP backery image but I can’t remember the CSS style i need to use to center an image that way (can you help me remembering what it was?) I mean this:

I had the code somewhere but i lost it and now there is no way to center the image in this way too (in Visual composer wp-backery)

Thanks

Hello Clelia Mattana,

Thank you for the very detailed post information. To resolve your issue, please add the following CSS code in the X > Theme Options > Global CSS (http://prntscr.com/evui3r)

.aligncenter {
    text-align: center;
}

We would love to know if this has worked for you. Thank you.

Thanks, it worked! I just wanted to know why it stopped working (it was fine without the CSS code) and if I can use the same code on a image level (in the style field)

Thank you

Hello Clelia Mattana,

You are most welcome. It stopped working because there was a certain css that created a conflict after the updates. The only way to resolve it is by adding the custom css instead.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.