It’s 11:58 PM, your Black Friday sale starts in two minutes, and you’re still logging in to swap a banner. Sound familiar? Shopify’s free Dawn theme is fast and clean, but the default Shopify Dawn slideshow gives you one image for every screen, no clickable links and no scheduling. In this guide I’ll show you how I fixed all three: separate desktop and mobile banners, tap-through links to any page or collection, and start and end times that make every campaign go live and expire on its own. No apps, no monthly fees, no midnight edits.
Why the default Dawn slideshow falls short
Dawn is Shopify’s free, fast and clean default theme, but its slideshow section is built for the simplest case: one image per slide, shown the same way on every device.
Real stores quickly run into three problems:
- One image for every screen. A wide desktop banner gets cropped or shrunk on phones, where most shoppers browse. Text becomes unreadable and the offer gets lost.
- No link on the banner. Shoppers tap a banner expecting to land on the sale, collection or product it advertises. Without a link, the slide is decoration.
- Everything is manual. Every flash sale, festive offer or product launch means someone logging in at midnight to add or remove a slide. Miss it, and an expired offer stays live.
I fixed all three by customizing the slideshow section directly in the theme code. The rest of this guide explains what changed and how to rebuild it.
Before you start
You need a Shopify store on the free Dawn theme and access to its code. First:
- Duplicate your theme. Go to Online Store, then Themes, then Actions, then Duplicate, and work on the copy.
- Open the code editor. On the copy, choose Actions, then Edit code, then open sections/slideshow.liquid.
- Prepare two images per banner. A wide one for desktop and a tall one for mobile.
Step 1: Add the new settings to the schema
Every option a merchant sees in the theme editor comes from the {% schema %} block at the bottom of sections/slideshow.liquid (see Shopify’s section schema docs). Dawn’s slide block already includes an image picker, so the customization adds four new settings to the slide block’s settings list, right after the existing image picker:
- Mobile image (mobile_image): a second image picker for screens under 750px wide
- Image Link (image_link): a URL picker that makes the whole slide clickable
- Show from (schedule_start): when the slide goes live
- Hide after (schedule_end): when the slide expires
Shopify has no native date-time picker, so the start and end values are entered as text in a fixed format, with an info line that tells the merchant the expected format.
The code I added to the slide block’s settings:
{
"type": "image_picker",
"id": "mobile_image",
"label": "Mobile image",
"info": "Displayed on screens under 750px wide. Recommended size: 750 x 1000px (portrait). If left blank, the desktop image is used on mobile too."
},
{
"type": "url",
"id": "image_link",
"label": "Image Link",
"info": "Makes the entire slide clickable. Independent from the button link below."
},
{
"type": "header",
"content": "Scheduling (optional)"
},
{
"type": "text",
"id": "schedule_start",
"label": "Show from",
"info": "Format: YYYY-MM-DD HH:MM (24hr, store timezone). Leave blank to show immediately."
},
{
"type": "text",
"id": "schedule_end",
"label": "Hide after",
"info": "Format: YYYY-MM-DD HH:MM (24hr, store timezone). Leave blank to never hide."
}
How the settings work:
- image_picker and url give merchants Shopify’s standard file picker and link picker, which can point to pages, products and collections.
- The two schedule fields are plain text settings, with the exact format spelled out in the info line. Both are optional: blank means “show immediately” and “never hide”.
- A header setting groups the schedule fields under “Scheduling (optional)” in the editor.
Step 2: Show separate desktop and mobile images
Each slide now outputs two images: a mobile image for screens under 750px wide, and Dawn’s original image for desktop. Both are in the page, and a few lines of CSS decide which one is visible, so phones get a banner designed for phones and nothing is awkwardly cropped.

Liquid: the image markup inside each slide
{%- if block.settings.mobile_image != blank -%}
<img
class="slideshow__img--mobile"
src="{{ block.settings.mobile_image | image_url: width: 750 }}"
srcset="
{{ block.settings.mobile_image | image_url: width: 375 }} 375w,
{{ block.settings.mobile_image | image_url: width: 550 }} 550w,
{{ block.settings.mobile_image | image_url: width: 750 }} 750w
"
sizes="100vw"
width="{{ block.settings.mobile_image.width }}"
height="{{ block.settings.mobile_image.height }}"
alt="{{ block.settings.mobile_image.alt | escape }}"
{% if visible_index == 1 %}fetchpriority="high"{% else %}loading="lazy"{% endif %}
>
{%- endif -%}
{%- comment -%} Keep the desktop image visible on phones when no mobile image is uploaded {%- endcomment -%}
{%- assign desktop_class = 'slideshow__img--desktop' -%}
{%- if block.settings.mobile_image == blank -%}
{%- assign desktop_class = 'slideshow__img--desktop slideshow__img--always' -%}
{%- endif -%}
{%- if visible_index == 1 -%}
{{
block.settings.image
| image_url: width: 3840
| image_tag:
class: desktop_class,
height: height,
sizes: sizes,
widths: widths,
fetchpriority: fetch_priority
}}
{%- else -%}
{{
block.settings.image
| image_url: width: 3840
| image_tag:
class: desktop_class,
loading: 'lazy',
height: height,
sizes: sizes,
widths: widths
}}
{%- endif -%}
CSS: the breakpoint swap (inside a <style> tag near the top of slideshow.liquid)
@media screen and (max-width: 749px) {
.slideshow__img--mobile { display: block !important; }
.slideshow__img--desktop { display: none !important; }
}
@media screen and (min-width: 750px) {
.slideshow__img--mobile { display: none !important; }
.slideshow__img--desktop { display: block !important; }
}
.slideshow__img--mobile,
.slideshow__img--desktop {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
top: 0;
left: 0;
}
/* No mobile image uploaded: keep the desktop image visible on phones */
.slideshow__img--always { display: block !important; }
Fallback: with no mobile image, the slideshow__img–always class keeps the desktop image visible on phones.
Step 3: Make banners clickable
The merchant picks a page, product or collection in the Image Link field. The URL is saved on the slide, and a small script makes the whole banner clickable. Swipes and clicks on the button or arrows are ignored.
Liquid: add the link as a data attribute on the slide
<div
class="slideshow__slide grid__item grid--1-col slider__slide"
id="Slide-{{ section.id }}-{{ visible_index }}"
{{ block.shopify_attributes }}
role="group"
aria-roledescription="{{ 'sections.slideshow.slide' | t }}"
aria-label="{{ visible_index }} {{ 'general.slider.of' | t }} {{ visible_total }}"
tabindex="-1"
{% if block.settings.image_link != blank %}data-slide-link="{{ block.settings.image_link }}"{% endif %}
>
JavaScript: make slides with a link clickable (inside a <script> tag near the bottom of the file, above {% schema %})
document.addEventListener('DOMContentLoaded', function() {
function initSlideLinks() {
document.querySelectorAll('.slideshow__slide[data-slide-link]').forEach(function(slide) {
var href = slide.getAttribute('data-slide-link');
if (href) {
slide.style.cursor = 'pointer';
var mouseDownX = 0;
var mouseDownY = 0;
slide.addEventListener('mousedown', function(e) {
mouseDownX = e.clientX;
mouseDownY = e.clientY;
});
slide.addEventListener('click', function(e) {
if (
e.target.closest('.banner__buttons') ||
e.target.closest('.slider-button') ||
e.target.closest('.slideshow__autoplay') ||
e.target.closest('.slider-counter')
) { return; }
var distX = Math.abs(e.clientX - mouseDownX);
var distY = Math.abs(e.clientY - mouseDownY);
if (distX > 5 || distY > 5) { return; }
window.location.href = href;
});
}
});
}
initSlideLinks();
document.addEventListener('shopify:section:load', initSlideLinks);
});
Step 4: Schedule banners with start and end times
Scheduling runs in Liquid, with no JavaScript. Each time the page is built, the section compares the current time with every slide’s Show from and Hide after values and skips slides that are not live:
- Before the start time: the banner is hidden.
- Between start and end: the banner is shown in the slideshow.
- After the end time: the banner is removed automatically.
- No dates set: the banner always shows, like a normal Dawn slide.
Liquid 4a: count the slides that are live (before the slideshow markup, using Shopify’s date filter)
Liquid 4a: count the slides that are live (placed before the slideshow markup)
{%- liquid
assign now_ts = 'now' | date: '%s'
assign visible_total = 0
for block in section.blocks
assign block_is_live = true
if block.settings.schedule_start != blank
assign start_ts = block.settings.schedule_start | date: '%s'
if start_ts != blank and now_ts < start_ts
assign block_is_live = false
endif
endif
if block.settings.schedule_end != blank
assign end_ts = block.settings.schedule_end | date: '%s'
if end_ts != blank and now_ts > end_ts
assign block_is_live = false
endif
endif
if block_is_live
assign visible_total = visible_total | plus: 1
endif
endfor
if request.design_mode
assign visible_total = section.blocks.size
endif
-%}
Liquid 4b: skip slides that are not live (inside the slide loop)
{%- assign visible_index = 0 -%}
{%- for block in section.blocks -%}
{%- liquid
assign block_is_live = true
if block.settings.schedule_start != blank
assign start_ts = block.settings.schedule_start | date: '%s'
if start_ts != blank and now_ts < start_ts
assign block_is_live = false
endif
endif
if block.settings.schedule_end != blank
assign end_ts = block.settings.schedule_end | date: '%s'
if end_ts != blank and now_ts > end_ts
assign block_is_live = false
endif
endif
-%}
{%- if block_is_live == false and request.design_mode == false -%}
{%- continue -%}
{%- endif -%}
{%- assign visible_index = visible_index | plus: 1 -%}
{% comment %} ...the slide markup from Steps 2 and 3 goes here... {% endcomment %}
{%- endfor -%}
Times use the store’s time zone in YYYY-MM-DD HH:MM format. Arrows and dots count only live slides. In the theme editor, every slide shows, with a “Not live” badge on the ones that are not.
Optional: editor badge (Liquid inside each slide, plus CSS in the same <style> tag)
{%- if request.design_mode and block_is_live == false -%}
<div class="slideshow__scheduled-badge">
Not live on storefront{% if block.settings.schedule_start != blank %} · starts {{ block.settings.schedule_start }}{% endif %}{% if block.settings.schedule_end != blank %} · ends {{ block.settings.schedule_end }}{% endif %}
</div>
{%- endif -%}
.slideshow__scheduled-badge {
position: absolute;
top: 10px;
left: 10px;
z-index: 20;
background: rgba(220, 38, 38, 0.9);
color: #fff;
font-size: 12px;
line-height: 1.3;
padding: 4px 10px;
border-radius: 6px;
font-family: sans-serif;
max-width: calc(100% - 20px);
}
Using it in the theme editor
Once the code is in place, merchants never touch it again. Everything is managed from the Shopify theme editor:
- Go to Online Store, then Themes, then Customize.
- Open the homepage and select the Slideshow section.
- Add or open a slide.
- Upload the desktop image and the mobile image.
- Choose a link to a page, product or collection.
- Enter the start and end date and time in the format shown under each field.
- Save. The banner now goes live and expires on schedule.
Slides that are not live yet (or have expired) still appear in the editor, marked with a red “Not live on storefront” badge, so nothing is lost.

Pitfalls and limits
These are the issues most likely to catch you out.
- Date format errors. A mistyped date, such as 20-11-2026, may be read wrongly and give unexpected results. Keep the format hint visible in the editor and test every schedule in the preview.
- Theme updates. Updating Dawn can overwrite your custom code. Keep a copy of your changes, or compare files before applying a new theme version.
Conclusion
With a few changes to one section file, Dawn’s slideshow now handles what real campaigns need: the right banner on every device, banners that send shoppers somewhere useful, and offers that start and end on their own. Merchants save time, and shoppers never see an outdated promotion.
If you run a store on Dawn, try this on a duplicate theme first, then roll it out once the checklist passes.
Have a question or want this built for your store? Contact us. We can add customizable sections to your Shopify theme.














