[Resolved] Different Background Images for Different Devices

Home Forums Support [Resolved] Different Background Images for Different Devices

Home Forums Support Different Background Images for Different Devices

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1312402
    Angus

    Hi I’m trying to have a different background image for mobile, tablet and desktop, as the bg image is way off centre on mobile. I’m aware background images aren’t responsive so I’ve tried using css found on this support forum but I’m not having much luck.

    I’ve tried among others..

    @media (max-width: 768px) {
        .mobile-hero-image {
            background-image: url('url to mobile image') !important;
        }
    }

    Any ideas?

    #1312431
    David
    Staff
    Customer Support

    Hi there,

    are you trying to change the background of a Header Element or a GenerateBlocks Container ?

    #1312439
    Angus

    A GB container

    #1312454
    David
    Staff
    Customer Support

    Did you add mobile-hero-image to Additional CSS Class field in the Container Blocks advanced settings ?

    #1312464
    Angus

    Duh! No I didn’t, but I have now, and it’s working! Thankyou! Can I add more than one CSS Class to Class field?

    #1312468
    David
    Staff
    Customer Support

    You can add multiple classes – just separate them with a space.

    We’re looking at responsive background image options such as this in GenerateBlocks Pro

    #1312469
    Angus

    Brilliant! Can we pre-order? lol

    Thanks again for your help David

    #1312494
    David
    Staff
    Customer Support

    You’re welcome

    #1567881
    Sarah

    We’re looking at responsive background image options such as this in GenerateBlocks Pro

    Any news/updates on this?

    #1568259
    David
    Staff
    Customer Support

    Aiming for next week for a GB Pro release. And it will provide responsive backgrounds

    #1702005
    Isabel

    Hi! where can I find the responsive background option? My background looks great on computers but it looks terrible on mobile.

    #1702127
    Ying
    Staff
    Customer Support

    Hi Isabel,

    The responsive background option is from Generateblocks Pro.
    It’s not a GP feature Unfortuanly.

    You could try some CSS solution for backgrounds on mobile.

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