1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Images disappearing in phone view

Discussion in 'Free Divi Community Forum' started by Harriet, May 16, 2024.

  1. Harriet

    Harriet Member

    Hi Divi,
    All images are looking fine in Divi's mobile preview...
    But when I look at that webpage with my iphone, 2 out of the 3 images are missing?

    For example, attached is:
    1. view from Divi's mobile preview
    2. screenshot from my iphone

    Am totally puzzled! Does anyone know what's going on?
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Beautify your Divi archive / category page with 15 different premade blog designs:Learn More
  2. Divi Booster

    Divi Booster Divi Expert

    Hi Harriet,

    It looks like the issue you're experiencing is due to the way Divi handles empty columns on mobile devices. The image set as the background of an empty column in the row module is visible on desktops because the column's height is derived from the other columns in the row. However, on mobile devices, Divi stacks columns and hides any empty ones, resulting in the background image being hidden.

    To resolve this, you can make the empty column visible on mobile by adding some custom CSS to the column. Here's how you can do it:

    1. Open the Divi Builder and navigate to the row containing the problematic column.
    2. Click on the settings icon for the empty column.
    3. Go to the "Advanced" tab and then to the "Custom CSS" section.
    4. In the "Main Element" field, add the following CSS:
    Code:
    Log In or Sign Up to view this code.
    This should ensure that the column is visible on mobile devices, making the background image appear as well.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  3. Harriet

    Harriet Member

    Thank you so much!

    I tried that, and still no luck...but maybe the webpage is cached on my phone or something?
    I'll look at it with some other phones, and see...

    workaround thought -
    Maybe I'll make a transparent PNG for a "placeholder" and insert it into that empty column...
     
  4. Harriet

    Harriet Member

    Hmm the transparent PNG placeholder seems to be doing the trick for now!
    I just inserted a transparent PNG as an image into the empty column.
    I know it's not a good elegant way to do it, so I'll still keep researching this...
    Thank you for your explanation of why the image was disappearing!!
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  5. Divi Booster

    Divi Booster Divi Expert

    I can see the CSS I gave you being added to the page, but they are being placed in the wrong box which means the necessary CSS selector isn't being applied. I think my instructions weren't sufficiently clear, so here's a revised version:

    1. Open the Divi Builder and navigate to the row containing the problematic column.
    2. Click on the settings icon for the empty column.
    3. Go to the "Advanced" tab and then to the "Custom CSS" section.
    4. Click on "Module Elements"
    5. In the "Main Element" field, add the following CSS:
    Code:
    Log In or Sign Up to view this code.
    I'm guessing you put the code in the Custom CSS section under "Free-Form CSS"? That would make sense if you were following my original instructions, but unfortunately that's not the right place. Switch from Free-Form CSS to Module Elements and then locate the "Main Element" box - that's the one you need.

    But if the transparent PNG is working, then great. It should certainly solve the issue of the column being hidden as it is no longer empty.
     
  6. Harriet

    Harriet Member

    I did paste it into the "Main Element box" ...
    but checking the module again, I see that I pasted it into code for Desktop view and not the Phone view! (Careful - you have to be clicked/activated on the right device?)
    So I think that's why it didn't work!

    Anyway over here, the image is now displaying and sizing beautifully on desktop / horiz tablet / vert tablet / phone so I consider this issue Solved!

    I'm marking it Solved...

    Thanks again!!!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo
  7. Divi Booster

    Divi Booster Divi Expert

    You're very welcome, Harriet - and glad you were able to figure that out! :)