Hi,
I have added a gallery slide show and the slider for mobile doesn’t work. It’s not my own code so I’m kind of struggling to figure out why it’s not working.
Here’s the code (without schema):
{% style %}
#section-id-{{ section.id }} .gallery__item {
height: {{ section.settings.mobile_image_height }}px;
}
#section-id-{{ section.id }} .overlay-text__title {
font-size: {{ section.settings.title_size_mobile }}px;
{%- if section.settings.title_size_mobile >= 90 -%}
line-height: 1em;
{%- endif %}
}
@media (min-width: 768px) {
#section-id-{{ section.id }} .gallery__item {
height: {{ section.settings.desktop_image_height }}px;
}
#section-id-{{ section.id }} .overlay-text__title {
{%- assign title_size_medium = section.settings.title_size | times: 0.7 | at_least: section.settings.title_size_mobile -%}
font-size: {{ title_size_medium }}px;
{%- if title_size_medium >= 90 -%}
line-height: 1em;
{%- endif %}
}
}
@media (min-width: 1100px) {
#section-id-{{ section.id }} .overlay-text__title {
font-size: {{ section.settings.title_size }}px;
{%- if section.settings.title_size >= 90 -%}
line-height: 1em;
{%- endif %}
}
}
{% endstyle %}
{%- capture super_container_class -%}
{%- liquid
if section.settings.enable_row_spacing
if section.settings.use_alt_bg
echo 'use-alt-bg fully-padded-row--medium'
else
echo 'fully-spaced-row--medium'
endif
elsif section.settings.use_alt_bg
echo 'use-alt-bg'
endif
-%}
{%- endcapture -%}
{%- unless section.settings.full_width -%}
{%- endunless -%}
{%- for block in section.blocks -%}
{%- assign forloop_mod_grid = forloop.index0 | modulo: section.settings.grid -%}
{%- if forloop.index0 > 0 and forloop_mod_grid == 0 -%}
{%- endif -%}
{%- assign show_overlay_text = false -%}
{%- if block.settings.title != blank or block.settings.subheading != blank or block.settings.button_label != blank -%}
{%- assign show_overlay_text = true -%}
{%- endif -%}
{%- if block.settings.link != blank -%}{%- endif -%}
{%- if block.settings.image == blank -%}
{{ 'image' | placeholder_svg_tag: 'placeholder-svg' }}
{%- else -%}
{%- endif -%}
{%- if show_overlay_text -%}
{%- if block.settings.subheading != blank -%}
{{ block.settings.subheading | escape }}
{%- endif -%}
{%- if block.settings.title != blank -%}
## {{ block.settings.title | newline_to_br }}
{%- endif -%}
{%- if block.settings.button_label != blank -%}
{{ block.settings.button_label }}
{%- endif -%}
{%- endif -%}
{%- if block.settings.link != blank -%}{%- endif -%}
{%- endfor -%}
{%- unless section.settings.full_width -%}
{%- endunless -%}