featured image showing huge in desktop but is alright in mobile view

[ad_1]

Hi there,

can you share a link to where we can see the issue on your site?

ying

(@yingscarlett)

I don’t see any issue with the featured image, it respects the original aspect ratio, and showing correctly.

If you want to limit its height, it requires GP Premium or custom CSS.

.single-post img.single-featured-image {
max-height: 400px;
width: 100%;
object-fit: cover;
}

Thanks Ying! That worked. Do you have the code for the post images too for the query I shared in another ticket through which I can fix its height and width without changing it for each image?

ying

(@yingscarlett)

Not problem! I replied you in the other topic with the CSS code 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer