This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Page Builder background image won’t rescale for mobile devices

Open 49 replies pluginplugin-page-builder
10 years ago · Last reply by Hope Moran 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

49
  1. Andrew Misplon Staff 10 years, 5 months ago

    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.

    • trikaecoresort.com 10 years, 5 months ago

      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. Andrew Misplon Staff 10 years, 5 months ago

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

  3. Andrew Misplon Staff 10 years, 5 months ago

    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>
    
    • trikaecoresort.com 10 years, 5 months ago

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

  4. Andrew Misplon Staff 10 years, 5 months ago

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

  5. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    ok sure i will set it up now

  7. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

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

  10. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    ok spacers removed

  12. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    yes i did

  14. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    simple custom css

  16. trikaecoresort.com 10 years, 5 months ago

    under the appearance colum on the left

  17. Andrew Misplon Staff 10 years, 5 months ago

    Sorry, error in Custom CSS, use:

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

    ok thats done and is looking good!

  19. trikaecoresort.com 10 years, 5 months ago

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

  20. Andrew Misplon Staff 10 years, 5 months ago

    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. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    I just did the font code and lost my spacing again

  23. Andrew Misplon Staff 10 years, 5 months ago

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

  24. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    and no they’re not the same spacing values

  26. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

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

  28. trikaecoresort.com 10 years, 5 months ago

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

  29. trikaecoresort.com 10 years, 5 months ago

    without text**

  30. Andrew Misplon Staff 10 years, 5 months ago

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

  31. trikaecoresort.com 10 years, 5 months ago

    full screen image cells without text code?

  32. Andrew Misplon Staff 10 years, 5 months ago

    Example row?

  33. trikaecoresort.com 10 years, 5 months ago

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

  34. trikaecoresort.com 10 years, 5 months ago

    bottom row on that page for example

  35. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    oh awesome….
    Thanks so much for your help

  37. Andrew Misplon Staff 10 years, 5 months ago

    For sure :)

  38. trikaecoresort.com 10 years, 5 months ago

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

  39. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

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

  41. Andrew Misplon Staff 10 years, 5 months ago

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

  42. trikaecoresort.com 10 years, 5 months ago

    but the image is 500…?

  43. trikaecoresort.com 10 years, 5 months ago

    looks great on mobile but now not on my macbook

  44. Andrew Misplon Staff 10 years, 5 months ago

    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. trikaecoresort.com 10 years, 5 months ago

    ok thanks so much i have to go now

  46. Andrew Misplon Staff 10 years, 5 months ago

    Sounds good :)

  47. Hope Moran 10 years, 29 days ago

    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.

Have a different question or issue?

Start New Thread