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

Solved Gallery mobile view columns

Discussion in 'Free Divi Community Forum' started by Noctedam, Dec 18, 2023.

  1. Noctedam

    Noctedam New Member

    Hello!

    It seems when I switch to tablet/mobile the Gallery seems to look like this. The number of images and columns are even so there shouldn't be any white spaces left, but there is... The images are the same size (1080x800) and also added a custom line to PHP to make the thumbnails the same size.


    add_filter( 'et_pb_gallery_image_width', 'custom_image_width' );
    function custom_image_width($width) {
    return '600';
    }

    add_filter( 'et_pb_gallery_image_height', 'custom_image_height' );
    function custom_image_height($height) {
    return '400';
    }

    add_image_size( 'custom-image-size', 600, 400, array( 'center', 'center' ) );

    What could be the problem? Thanks in advance!
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  2. Noctedam

    Noctedam New Member

    Sorry it works fine on mobile. Just the Divi preview shows it wrong.