Archived topic
Image not properly showing in AMP
5 replies · Started by Jayanta on November 2, 2020
Hi,
When I am enabling AMP (along with the AMP for GeneratePress plugin), the top WPSP section is not showing properly. The problem is not there when AMP is disabled.
The problem is showing (with AMP enabled) in both mobile and desktop.
Hi there,
How can we view the AMP version? ?amp doesn't seem to be working.
Let us know :)
Hi Tom, thanks for your reply. I deactivated the AMP plugin as it was not showing nicely. Activated it again. You may view the AMP version here
Everything else seems okay. Just the top WPSP thing.
Hi there,
try adding this CSS:
.wpsp-grid amp-img.amp-wp-enforced-sizes[layout="intrinsic"] > img {
object-fit: cover !important;
}
Hi David,
The code works perfect! Thank you so much. Now the website is AMP-First (Native AMP). Who says GeneratePress isn't good for magazine layout! :)
Awesome - glad to be of help!