Hi everyone,
I’m currently working on a custom Shopify section (built with Custom Liquid, HTML, CSS and a bit of JS). (www.kronbergcollection.com)
Everything works as expected (layout, hotspots, popups, responsiveness), however I’m facing one issue that I’ve been stuck with for hours:
On mobile (especially iOS), a white bar appears at the bottom of the viewport, only when this specific section is present on the page.
Important details:
-
The white bar is not related to a popup or modal (it appears even when everything is closed).
-
It only happens on this custom section.
-
All other sections on the website behave correctly (the browser UI overlays transparently as expected).
-
When scrolling down, the page looks fine at first, but then the white bar appears once the section is in view.
-
Removing this section immediately removes the white bar.
Has anyone experienced something similar or knows what typically causes this behavior in custom sections on mobile Safari?
Any help would be highly appreciated ![]()
Thanks in advance!
___________________________________________________________________________________________
Code from the Section:
<sectionid=“shopify-section-{{ section.id }}”
class=“ms-hotspot-section”
data-ms-hotspot
>
<img
src=“img”
alt=“”
class=“ms-hotspot-overlay-icon”
>
TAP THE MARKERS TO EXPLORE PERSONALIZATION OPTIONS
{% if section.settings.image != blank %}
<img
src=“{{ section.settings.image | image_url: width: 1600 }}”
alt=“”
class=“ms-hotspot-image”
>
{% endif %}
{% for block in section.blocks %}
<button
type=“button”
class=“ms-hotspot-dot”
data-hotspot-id=“{{ block.id }}”
style="
top: {{ block.settings.top }}%;
left: {{ block.settings.left }}%;
"
aria-label=“{{ block.settings.title }}”
>
<img
src=“https://cdn.shopify.com/s/files/1/0925/3381/7721/files/Design_ohne_Titel_12.png?v=1765537820”
alt=“”
class=“ms-hotspot-icon”
>
{% if block.settings.popup_image != blank %}
<img
src=“{{ block.settings.popup_image | image_url: width: 900 }}”
class=“ms-hotspot-popup-image”
alt=“”
>
{% endif %}
{{ block.settings.title }}
{{ block.settings.text }}
{% endfor %}
{% if section.settings.eyebrow != blank %}
{{ section.settings.eyebrow }}
{% endif %}
{% if section.settings.heading != blank %}
{{ section.settings.heading }}
{% endif %}
{% if section.settings.body_text != blank %}
{% endif %}
×
{ “type”: “richtext”, “id”: “body_text”, “label”: “Text” }
],
“blocks”: [
{
“type”: “hotspot”,
“name”: “Hotspot”,
“settings”: [
{
“type”: “range”,
“id”: “top”,
“label”: “Top position (%)”,
“min”: 0,
“max”: 100,
“step”: 1,
“default”: 50
},
{
“type”: “range”,
“id”: “left”,
“label”: “Left position (%)”,
“min”: 0,
“max”: 100,
“step”: 1,
“default”: 50
},
{
“type”: “text”,
“id”: “title”,
“label”: “Popup title”
},
{
“type”: “richtext”,
“id”: “text”,
“label”: “Popup text”
},
{
“type”: “image_picker”,
“id”: “popup_image”,
“label”: “Popup image”
}
\]
}
],
“presets”: [
{ "name": "Hotspot Card" }
]
}
{% endschema %}
