Site logo

Archived topic

How to change featured image size on the mobile homepage?

3 replies · Started by Shoumya on June 16, 2021

Viewing posts 1–4 of 4

Hi,
My site url: https://piklertrianglediy.com/
My site is ok for me on desktop. But on mobile and tablet I want to change the featured image size. This issue is only for the homepage. Please help

Hi there,

You can try adjust/modify the 3 property in below CSS:

@media (max-width: 768px) {
   .home .page-hero {
        background-size: contain; /*cover on desktop*/
        min-height: 50vh; /*100vh on desktop*/
        background-position: center center; /*same as desktop*/
    }
}

If you are not familiar with CSS, I would recommend google search how these CSS property works.

Adding CSS: https://docs.generatepress.com/article/adding-css/

Let me know if this helps :)

Thanks a lot. It worked for me

Great!

You are welcome :)

This archived topic is closed to new replies.