Site logo

[Resolved] HERO PAGE IMAGE RESPONSIVE

Home Forums Support [Resolved] HERO PAGE IMAGE RESPONSIVE

Home Forums Support HERO PAGE IMAGE RESPONSIVE

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1144873
    Juan

    Hi, I have a problem with my site’s home page, on desktop it looks good but on mobile the image doesn’t fit. I tried what you recommend in other similar questions in the support forum but I can’t find the solution.

    #1144874
    Leo
    Staff
    Customer Support

    Hi there,

    Two solutions for this:

    – Change the background position on mobile with this CSS:

    @media (max-width: 768px) {
        .page-hero.phalt {
            background-position: center center;
        }
    }

    – Use a mobile specific background image for this header element:

    @media (max-width: 768px) {
        .page-hero.phalt {
            background-image: url(https://MOBILE-IMAGE-URL)
        }
    }

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

    Let me know if this helps 🙂

    #1144912
    Juan

    Thanks, it’s solved, I was going crazy.

    #1144981
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.