Title: Basic Gallery &#8211; custom gap bug
Last modified: February 13, 2026

---

# Basic Gallery – custom gap bug

 *  Resolved [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/)
 * Hi,
 * Please check the bug that exists on Elementor widget – Basic Gallery.
   After adding
   a custom gap between images, that gap on the mobile version is added on all sides
   of the images and then that page can be scrolled right – left.On the mobile version,
   there should be no space around the images, but only below the images. Can this
   be fixed, to cancel the images side gap for the mobile version?Situation:Add 
   a Basic Gallery, and set the custom gap to 100px. Save the settings and in Inpect
   select dimensions: Samsung Galaxy S8+ ot on private phone. Theme: Hello Elementor.
 * Thank you.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/page/2/?output_format=md)

 *  [momo-fr](https://wordpress.org/support/users/momo-fr/)
 * (@momo-fr)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18821745)
 * Hi, I just ran the test and I don’t have this problem. Tested on Android 16 with
   Firefox and Chrome on [this page](https://meetup.freepixel.net/tests/).
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18822584)
 * I don’t know what settings you have set, but I have literally tried and created
   test pages on several sites and it is always the same problem.
   I reported the
   problem to theme support and when they switched the theme to Hello Elementor 
   and saw that there was a problem on it too, they said to report the problem to
   you.This problem can be solved if I set overflow: hidden in the container settings,
   maybe that option is turned on for you, but without it the screen can always 
   scroll right and left.
 *  Plugin Support [javiermv](https://wordpress.org/support/users/javiermv/)
 * (@javiermv)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18823772)
 * Hello there,
 * Thank you for reporting this.
 * I have just tried to recreate the issue on my end by adding a custom gap to the
   Basic Gallery widget in Elementor. I tested it carefully on mobile as well, but
   I was not able to reproduce the horizontal overflow or scrolling that you described.
 * To be thorough, I also tested this in a clean environment using only Elementor
   with the Hello theme activated, and the issue did not occur there either.
 * Because of that, it is possible that the behavior is being caused by a styling
   conflict from a third party plugin or additional custom code.
 * Could you please try temporarily deactivating all plugins except Elementor and
   then check whether the issue still happens? If the problem disappears, you can
   then reactivate your plugins one by one until you identify which one triggers
   the conflict.
 * Additionally, if you could share a screenshot or a short screencast of the issue,
   that would be very helpful. It would allow us to better understand what is happening
   on your site and determine whether this might be related to a specific setting
   or environment configuration.
 * Looking forward to your reply.
 * Thank you.
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18825985)
 * Hi,
 * Freshly installed wordpress, only Elementor plugin added and Hello theme activated.
   I am sending you pictures where you can see all the settings, plugins and theme
   and the final results. See the settings from the gallery and how it manifests
   on desktop and mobile.
   Link for pictures: [https://quickshare.samsungcloud.com/77M63f72JsJs](https://quickshare.samsungcloud.com/77M63f72JsJs)
 *  Plugin Support [Milos](https://wordpress.org/support/users/miloss84/)
 * (@miloss84)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18830363)
 * Hi there,
 * Thank you for reaching out again.
 * It appears that the image link you previously shared has expired, and we’re currently
   unable to access the files.
 * Could you please provide a new link to the screenshots so we can continue investigating
   the issue?
 * We appreciate your patience and look forward to your reply.
 * Kind regards,
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18831425)
 * Hi,
 * here is the link – [https://quickshare.samsungcloud.com/dY2w647E8gyn](https://quickshare.samsungcloud.com/dY2w647E8gyn)
 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18831663)
 * Hi [@saznajmo](https://wordpress.org/support/users/saznajmo/),
 * Thank you for the screenshots.
 * The page scrolls left and right on mobile because the custom gap you added is
   applied on all sides of each image. On small screens, this makes the total width
   of the images plus gaps exceed the viewport, causing horizontal scrolling. The
   extra spacing on the edges pushes the images beyond the screen, and the container
   allows overflow by default.
 * To fix this, you can reduce or remove the gap on mobile, apply spacing only between
   images, or hide horizontal overflow with CSS.
 * Kind regards,
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18834078)
 * Hi,
 * Yes, I reported that.
   For Basic Gallery, I don’t see an option to override the
   spacing on mobile devices. There are no widget editing options on mobile.Likewise,
   there is no option to add space on a mobile phone only below the image, but the
   space is always added on the side as well.
 * Please help.
 *  Plugin Support [Kervin](https://wordpress.org/support/users/kervinp/)
 * (@kervinp)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18834779)
 * Hi [@saznajmo](https://wordpress.org/support/users/saznajmo/),
   Thank you for 
   getting back to us.Indeed for the basic gallery there is no option to modify 
   the space specifically for mobile device. However, I tested this on 2 testing
   site but the space around the image was not present in both of them.Additionally,
   the screen recording sent was already expired, if possible can you share it to
   us again so that we can take a closer look.Regards,
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18836775)
 * Hi,
 * I’m sharing the link again, please check it out because it expires in two days.
   
   It has pictures of my settings where it’s clear that there’s a problem.Just the
   fact that it’s not modifiable on mobile devices says there must be a problem.
 * [https://quickshare.samsungcloud.com/9bvcRr9g6K6Z](https://quickshare.samsungcloud.com/9bvcRr9g6K6Z)
 *  Plugin Support [Milos](https://wordpress.org/support/users/miloss84/)
 * (@miloss84)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18837831)
 * HI there,
 * Can you share your page url where the gap is showing so we can inspect using 
   Google Developer tools and see where the gap is comming from.
 * Thank you for your patience and understanding.
 * Kind regards,
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18842054)
 * Hi,
 * you can check on moredecore.ba/test
 * New web site, only hello elementor theme and elementor plugin. One test page 
   and only basic gallery added.
 *  Plugin Support [Marielle C](https://wordpress.org/support/users/mariellec/)
 * (@mariellec)
 * [3 months ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18843361)
 * Hi there,
 * Thanks for keeping in touch.
 * It looks like the gap disappears when loading the page bypassing cache: [https://moredecore.ba/test/?nocache=1](https://moredecore.ba/test/?nocache=1)
   
   Please check on your end to confirm. This suggests that the issue is due to caching.
   Kindly ensure to periodically clear all sort of cache– WP cache, browser cache,
   and server side cache.
 * Best regards,
 *  Thread Starter [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * (@saznajmo)
 * [3 months ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18844078)
 * Hi,
 * I don’t think so. I checked this link and it’s still not working. This page doesn’t
   have a caching plugin or any caching configured.
   I tried on two hosting providers
   and on localhost, same problem every time.Astra theme support also Tried and 
   same problem.The problem is in the Basic Gallery widget.
 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [3 months ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/#post-18844741)
 * Hi [@saznajmo](https://wordpress.org/support/users/saznajmo/),
 * I tested the Basic Gallery widget on my local test site, and the custom gap appears
   to be working correctly on my end, so I wasn’t able to replicate the issue.
 * Could you please provide a new screen recording showing how the Basic Gallery
   is set up on your site? This will help us better understand the configuration
   and investigate the issue further.
 * Looking forward to your reply.
   Kind regards,

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/page/2/?output_format=md)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbasic-gallery-custom-gap-bug%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 18 replies
 * 7 participants
 * Last reply from: [saznajmo](https://wordpress.org/support/users/saznajmo/)
 * Last activity: [3 months ago](https://wordpress.org/support/topic/basic-gallery-custom-gap-bug/page/2/#post-18846363)
 * Status: resolved