Home>Support>Page Builder background image won’t rescale for mobile devices

Page Builder background image won’t rescale for mobile devices

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi,
I’m Using Tesseract theme with Page Builder plugin and any full size background images in the pagebuilder won’t resize/rescale when viewing on mobile devices.

I have used full size images on almost every page..

is there a simple solution for this?

any help would be greatly appreciated…..
thank you

URL: http://www.trikaecoresort.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Trikaecoresort.com

    Thanks for reaching out.

    There is a fair bit going on here. Let’s start with the first row. You ideally need to drop the empty paragraphs, there are three below the buttons.

    The space above the headline is being added by Easy Google Fonts with the following:

    .home-headline {
        color: #f7f7f7;
        font-family: 'Roboto Slab';
        font-size: 84px;
        font-style: normal;
        font-weight: 300;
        margin-top: 161px;
    }
    

    The margin-top ideally, also needs to be dropped. Removed.

    Next, edit the row concerned, click Attributes top right, and enter a custom row class name:

    custom-home-hero
    

    Next, install a Custom CSS plugin if you don’t already have on installed. Page: SiteOrigin CSS Editor

    Next, go to Appearance > Custom CSS or wherever your Custom CSS plugin is located and insert the following:

    /* Page Builder Styles */
    
    @media (min-width: 680px {
    	.custom-home-hero .textwidget {
    		margin-top: 161px;
    		margin-bottom: 100px;
    	}
    }
    

    You can make adjustments to the values as required. Let me know once that is done, I’ll take a look at the image then.

    • 9 years, 10 months ago trikaecoresort.com

      Hi Andrew,

      Thanks for the reply…
      I have adjusted the settings as advised and unfortunately the 3 full screen images on the page still won’t resize for mobile devices.

      reguards,
      trikaecoresort.com

  2. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Thanks, we’re just working that first image for now. I’ll come back to you shortly.

  3. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    One super important aspect of responsive design is that we can’t use static elements to create space. Well at least, not without dropping them on mobile.

    Please, in the first row, remove this markup:

    <span style="display:block;clear:both;height: 0px;padding-top: 250px;"></span>
    
    • 9 years, 10 months ago trikaecoresort.com

      Is that the spacers i have used?
      where do i find that code?

  4. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    If you send a set of temporary login details we can help with this first row. Instructions to follow.

  5. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Trikaecoresort.com

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look? You can create the account with the following email address:

    [email protected]

    Just navigate to Users > Add New in your WordPress admin. Enter siteorigin for the username and [email protected] for the email address. Make sure you’ve selected Administrator for the role and enabled the “Send Password” field so we receive the details.

    Once we’re finished taking a look, you can delete this account. We’ll let you know when to do that.

  6. 9 years, 10 months ago trikaecoresort.com

    ok sure i will set it up now

  7. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    The spacers are the challenge. They aren’t dynamic or being dropped on mobile so they negatively impact the responsive behaviour of the page.

  8. 9 years, 10 months ago trikaecoresort.com

    ok that’s done
    Just to let you know i’m at the airport and will be bording in half an hour so if i dissapear im on a plane and will have to resume sometime later.
    Thanks

  9. 9 years, 10 months ago trikaecoresort.com

    ok, do you want me to remove the spacers now?

  10. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Please. Let’s just work that first row for now. All the spacers need to go. We need to create padding in a my dynamic way.

  11. 9 years, 10 months ago trikaecoresort.com

    ok spacers removed

  12. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Thanks. Did you insert this in Appearance > Custom CSS?

    /* Page Builder Styles */
    
    @media (min-width: 680px {
    	.custom-home-hero .textwidget {
    		margin-top: 161px;
    		margin-bottom: 100px;
    	}
    }
    
  13. 9 years, 10 months ago trikaecoresort.com

    yes i did

  14. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    What’s the name of the Custom CSS plugin you’re using? Or did you insert this into a theme provided Custom CSS field?

  15. 9 years, 10 months ago trikaecoresort.com

    simple custom css

  16. 9 years, 10 months ago trikaecoresort.com

    under the appearance colum on the left

  17. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Sorry, error in Custom CSS, use:

    /* Page Builder Styles */
    
    @media (min-width: 680px) {
    	.custom-home-hero .textwidget {
    		margin-top: 161px;
    		margin-bottom: 100px;
    	}
    }
    
  18. 9 years, 10 months ago trikaecoresort.com

    ok thats done and is looking good!

  19. 9 years, 10 months ago trikaecoresort.com

    can i use the same procedure and code for the others?

  20. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    You could also drop the headline font size down below 680 like this:

    @media (max-width: 680px) {
    	.custom-home-hero .textwidget .home-headline {
    		font-size: 40px;
    	}
    }
    

    Adjust value as required.

  21. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Very similar procedure. It all depends, is the padding top and bottom the same? Remember we said:

    margin-top: 161px;
    margin-bottom: 100px;
    

    So, if those are the same for the other rows, then we just need to add the class name into the new row Attributes field.

    If we need custom padding then we might need to repeat the procedure but with a new class name for the next row.

  22. 9 years, 10 months ago trikaecoresort.com

    I just did the font code and lost my spacing again

  23. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Ahh, it looks like you removed the first rule we added.

  24. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    So our Custom CSS should now look like this:

    /* Page Builder Styles */
    
    @media (min-width: 680px) {
    	.custom-home-hero .textwidget {
    		margin-top: 161px;
    		margin-bottom: 100px;
    	}
    }
    
    @media (max-width: 680px) {
    	.custom-home-hero .textwidget .home-headline {
    		font-size: 40px;
    	}
    }
    
  25. 9 years, 10 months ago trikaecoresort.com

    and no they’re not the same spacing values

  26. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Then you’d need to repeat the process with a new class name. custom-home-hero-sales or whatever makes sense for the row.

  27. 9 years, 10 months ago trikaecoresort.com

    thanks that’s fixed it again, im not sure why it dropped the first one

  28. 9 years, 10 months ago trikaecoresort.com

    ah ok, i get it!!
    and for ones with out text?

  29. 9 years, 10 months ago trikaecoresort.com

    without text**

  30. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Same solution. Leave the Visual Editor widget in place just remove the contents from the Text tab within the widget.

  31. 9 years, 10 months ago trikaecoresort.com

    full screen image cells without text code?

  32. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Example row?

  33. 9 years, 10 months ago trikaecoresort.com

    would i use an equal margin-top and margin-bottom?

  34. 9 years, 10 months ago trikaecoresort.com

    bottom row on that page for example

  35. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    For sure, I checked out the bottom row, it has a Visual Editor in it. Remove the contents from Text tab in the widget. Leave widget in place. You can use equal margin top and bottom OR equal padding.

  36. 9 years, 10 months ago trikaecoresort.com

    oh awesome….
    Thanks so much for your help

  37. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    For sure :)

  38. 9 years, 10 months ago trikaecoresort.com

    for some reason that worked for the bottom row on my macbook but not on the mobile viewing

  39. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    There is no content there to help the image for mobile so we’d need one more rule.

    .custom-home-hero-rainbow .textwidget {
    	min-height: 200px;
    }
    

    Adjust as required.

    This is a comment in CSS:

    /* Page Builder Styles */
    

    They don’t do anything functional. Use them to organise your CSS so it makes sense when come back to it later.

  40. 9 years, 10 months ago trikaecoresort.com

    ok i understand
    I just edited it and it still isn’t resizing on mobile

  41. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    The most you can use for min-height there is 208px.

  42. 9 years, 10 months ago trikaecoresort.com

    but the image is 500…?

  43. 9 years, 10 months ago trikaecoresort.com

    looks great on mobile but now not on my macbook

  44. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    The image is set to cover, which means it scales to best fit the space.

    You’ll need the min-height AND the margin rule you had in there before. Looks like you’ve removed the margin rule.

  45. 9 years, 10 months ago trikaecoresort.com

    ok thanks so much i have to go now

  46. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Sounds good :)

  47. 9 years, 5 months ago Hope Moran

    ok so what do you do if you are staring at all of this like its another language? is there a plug in or something simple?

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More