[Resolved] Adjust scaling on mobile for full width background image

Home Forums Support [Resolved] Adjust scaling on mobile for full width background image

Home Forums Support Adjust scaling on mobile for full width background image

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1610609
    Ola

    Hi!

    On my “About us” page, I’m struggling with getting the page hero image scaled right for mobile devices (also using GenerateBlocks). Image and text overlay looks good on desktop and tablet, but on mobile the person in the image gets cropped (and right aligned image makes the face go under the text).

    Is there a good way to adjust this? Or should I add another page hero with another image and use hide-on-desktop etc?

    Current link: https://www.stag1.ikigai.se/om-ikigai-ab/

    Happy for any input!

    Best regards,

    /O

    #1610829
    David
    Staff
    Customer Support

    Hi there,

    you’re using GenerateBlocks the majority of the settings provide Tablet and Mobile responsive options which you can adjust by select the relevant tab in the editor eg. min-height, spacing ( padding ) etc. So you should be able to resize the container to achieve a more relevant size container for Mobile.

    Let me know.

    #1611021
    Ola

    Thanks for your suggestions!

    Unfortunately those settings affects the contents within the container, not the container background itself (as it is full width as desktop/general setting). I have not found any option to adjust the image itself just for mobile (without adding an extra container with an additional image).

    Best regards,

    /O

    #1611122
    David
    Staff
    Customer Support

    GB Pro which we aim to release later this month will have responsive background controls.
    In the free version if you want to display a different background image for mobile then you could do this:

    1. Select the Container Block and in settings > Advanced –> Additional CSS Class(es) – give the element a class eg. mobile-background

    2. Add this CSS using your CSS class:

    .gb-container.mobile-background {
        background-image: url(full_url_to_your_mobile_iamge);
    }
    #1611148
    Ola

    Thanks for your solution!

    GB Pro sounds interesting!

    I’ll wait for GB Pro and use two containers with different pictures and hide-on-mobile in the meantime. Knowing myself, I’m bound to forget anything hardcoded into the CSS.

    Have a great weekend!

    /O

    #1611199
    David
    Staff
    Customer Support

    You’re welcome – have a great weekend too!

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