Site logo

[Resolved] Select background image with CSS

Home Forums Support [Resolved] Select background image with CSS

Home Forums Support Select background image with CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1550763
    Stewart

    I added a background image to my all pages on a client’s site through the Customize link. It works fine but I’d like to turn it off when the site is viewed on a mobile phone. There doesn’t seem to be a CSS selector available.

    You can see the site here: http://www.amarackfinancial.com

    Thanks!

    #1550777
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    @media (max-width: 768px) {
        body.separate-containers .inside-article {
            background-image: none;
        }
    }

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

    Let me know if this helps 🙂

    #1550782
    Stewart

    Thanks for the quick response AND for solving the problem! I tried for about an hour and couldn’t figure it out.

    #1550848
    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.