Archived topic
Image alignment not working
13 replies · Started by shailesh on November 12, 2020
I am trying to align my images to centre.
But they r sticking to left.
Let me know how to solve.
HI there,
Give this CSS a shot for now:
.aligncenter {
text-align: center;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
I'll look into why this doesn't work by default.
Are you using the most recent versions of the theme and premium plugin?
https://docs.generatepress.com/article/generatepress-and-gp-premium/
Yes am i'm using latest versions.
Waiting for your reply.
I'm not able to replicate the issue on my end with the exact same set up.
Which WordPress version are you using?
I am using Version 5.5.3 of wordpress.
Any chance you can disable all plugins and let me have another look?
I see that the image has an Amazon link attached to it.
Did you add that manually?
Ok I will disable them except Yoast, GP Premium and Jetpack.
Is that ok? Let me know.
I add amazon links manually.
Can you disable Yoast, JetPack and SiteGround Optimizer as well?
I tried to replicate the issue here but couldn't. Take a look at this:
https://www.screencast.com/t/jTUlvUDbBLtk
Disable all off of them except GP PREMIUM.
Now you can solve the issue.
Looks like the issue is no longer there?
Yes, But which plugin was creating issue?
Can I activate my all previous plugin?
Yes, But which plugin was creating issue?
I'm not sure.
Can I activate my all previous plugin?
If you want to find the culprit, then activate the plugins one by one.
SG Optimizer is creating that issue.
What can I do now?
You will have to report this to their support team.
Or just use the CSS fix I've provided here:
https://generatepress.com/forums/topic/image-alignment-not-working/#post-1528688