Archived topic
AMP Featured Image Issue
3 replies · Started by A. R. Choudhury on April 20, 2021
Hi, I have enabled AMP in transitional mode. Everything works fine except the featured image in a single post (I have enabled AMP in the post only).
I have set the width 740px and height 300px in the customizer. So, in the normal version theme cut out the featured image according to the setting.
In the AMP version, the full image is showing. This is not a problem. But in the AMP version, a big white space is showing at the top and bottom of the featured image.
Normal Version: http://prntscr.com/11rfwiz
AMP version: http://prntscr.com/11rfx2f
Please help...
Hi there,
Could you give this CSS a try:
.featured-image amp-img {
height: auto;
}
Let me know :)
Thank you so much Ying. Works great.
Nice!
You are welcome :)