Home>Support>Dropping Pictures in Mobile layout

Dropping Pictures in Mobile layout

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,

is there a way (with CSS maybe) to not load images in specific layouts or screen sizes?

Eventually can be added in the SiteOrigin Image – Attribute tab…

Thanks!

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, 5 months ago Lucas Tolle

    Hello, Matthia!

    The answer may be yes, if you determine a particular CSS style to the image.

    I wonder about when you refer to the image, that you are using any add-on Page Builder SiteOrigin?

    Give me more details or examples that I can help you.

    Lucas Tolle

  2. 9 years, 5 months ago Matthia

    Hi,

    Yes, i add an image using the add-on Page builder Siteorigin, specifically the SiteOrigine Image widget.

    I was wondering if i can add CSS attributes (in the left column tab of the widget) to make NOT loading depending on the screen size.

  3. 9 years, 5 months ago Lucas Tolle

    Hello, Matthia.

    Please tell me the link of the page (or create a test page, and insert the image you want to do). Then give me the link of the page (can be privately), and I will give you all the necessary code.

    I need to inspect the CSS you are using to provide you the codes. So you’ll just paste and leave it running.

    wait,

    Lucas Tolle

  4. 9 years, 5 months ago Matthia

    Hi Lucas,

    I got the full website offline running on MAMP. So I have inspected the image i got the following informations…
    Does it help? If not, let me know what you need and i will try to provided it.
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    margin border padding

    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    margin border padding

    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    <http://localhost/alphahorse/&gt;
    <>
    margin border padding

    <div class="panel-grid-cell" id="pgc-4-2-2"><div class="so-panel widget widget_sow-image panel-first-child panel-last-child" id="panel-4-2-2-0"><div style="padding: 120px 0px 60px 0px;" class="panel-widget-style"><div class="so-widget-sow-image so-widget-sow-image-sow-image-b5a0057b6480">

    <div class="sow-image-container">
    <img src="http://localhost/alphahorse/wp-content/uploads/2016/01/Quill-293×300.png&quot; width="293" height="300" srcset="http://localhost/alphahorse/wp-content/uploads/2016/01/Quill-293×300.png 293w, http://localhost/alphahorse/wp-content/uploads/2016/01/Quill.png 343w" class="so-widget-image">
    </div>

  5. 9 years, 5 months ago Lucas Tolle

    Your local server does not allow us to visualize the images.

    Please make prints and click ADD MEDIA where visualizaremos.

    Waiting …

  6. 9 years, 5 months ago Private Message - Matthia

    This is a private message.

  7. 9 years, 5 months ago Lucas Tolle

    I’m unofficial moderator SiteOrigin, despite determined to contribute to the forum helping people like you solve problems. Including on issues involving CSS, Page Builder SiteOrigin and Add-ons.

    So why not be official moderator, I can not read your private messages. Try a better way, I’ll be happy to help you.

    Lucas Tolle

  8. 9 years, 5 months ago Matthia

    Hi, no problem,

    Here i send you screenshot to I’ve the idea…
    I would like to drop the picture of the quill if browser is in mobile (depending on browser width)

    Screen Shot 2016-01-27 at 9.02.34 AM

    Screen Shot 2016-01-27 at 9.04.30 AM

    Screen Shot 2016-01-27 at 9.04.33 AM

    Screen Shot 2016-01-27 at 9.04.35 AM

    Screen Shot 2016-01-27 at 9.04.37 AM

  9. 9 years, 5 months ago Lucas Tolle

    So you want when you are mobile, the image does not appear.

    That’s right?

  10. 9 years, 5 months ago Matthia

    Yes, when the page is loaded on a mobile, or at least when the menu collapses in the mobile mode (below 520px), i would like the picture not to load.

  11. 9 years, 5 months ago Lucas Tolle

    If this is the case, you will add the code below and add your divs inside it:

    @media only screen 
      and (min-device-width: 320px) 
      and (max-device-width: 520px)
      and (-webkit-min-device-pixel-ratio: 2) {
    
        /* Add DIVS HERE */  
     div.sow-image-container{ display:none; }  
    }

    If it persists, place the word “!important” before “;”. Example:

    div.sow-image-container{ display:none!important; }  

    Note that you must do so exclusively on the page you want to change. If you do this globally (using the plugin SO CSS) will compromise all images of other pages as well.

    Let me know if you managed to solve your problem.

  12. 9 years, 5 months ago Matthia

    Can i do this with CSS attributes tab?, like this:

    Screen Shot 2016-01-27 at 10.04.41 AM

  13. 9 years, 5 months ago Lucas Tolle

    Matthia,

    I did some testing here and works the way down. However, you will not get easily.
    Because?

    The “Page Builder SiteOrigin” does not yet have a single CSS to the related page. For this you will need to download the plugin:

    https://wordpress.org/plugins/rt-custom-css-page-and-post/

    After activating, a field appears on your page, allowing you to enter the code below.

    @media screen and (max-width: 520px)  {
    .so-widget-sow-image {
        display: none!important;
    }}

    Remember to put}} at the end to close completely.

    That’s the best way, because the Page Builder CSS fields will only change the modules, lines, etc. Not the entire page.

    Let me know if you managed to solve your problem.

  14. 9 years, 5 months ago Matthia

    Thank its working great!

    If i we take it further,
    What if i want to drop a specific grid cell, can i do this by ID?

    For example the picture grid has a:
    <div class="panel-grid-cell" id="pgc-4-2-2”>

    If i can do this by grid ID, than i can drop specific grid in a single page…

  15. 9 years, 5 months ago Lucas Tolle

    Yes. Perfectly.

    Thus, you would not need another plugin. The Plugin CSS SIteOrigin attend to your needs.

    So, we tell each unique ID for each item you want and have the result.

    Remember to put “.” when class was. Or “#” when ID.

    Anything we’re here to help.

    Lucas Tolle

  16. 9 years, 5 months ago Matthia

    Ok. it all works now! thank you very much for your great help!!

  17. 9 years, 5 months ago Lucas Tolle

    I am happy to know that everything went well!

    Count on me!

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