Start building

Guides

Black Friday on Shopify with sections, not a new theme

Black Friday 2026 is Friday 27 November and Cyber Monday is the 30th. That leaves enough time to change a few sections properly and too little to change themes safely.

The Klorr teamUpdated 10 min read

  • Black Friday
  • BFCM
  • Banners
  • Countdown

Key takeaways

  • Change three or four things on the pages that sell: an offer message, one honest deadline, a gift route, and the collection the campaign links to.
  • Discounts and banners run on separate clocks. Set the discount's own dates first, then make every banner and timer match them to the minute.
  • Liquid's now can be stale because of page caching, so a banner that must switch at an exact moment needs its check in the browser.
  • Launchpad schedules campaigns on Shopify Plus only. On other plans, use a self-timing section or a duplicate theme published by hand.

Here is the whole job on one calendar. The dates assume you are reading this in the first week of November. If you are later than that, drop the nice-to-haves and keep the test week.

DatesWhat to doWhy then
5 to 9 NovDuplicate the live theme as a backup. Decide the offer. Pick the two or three pages you will change.The offer decides everything else. A timer with no fixed end date cannot be built yet.
10 to 16 NovCreate the discounts with their real start and end times. Build the campaign collection and the gift route. Add the sections, hidden.You still have time to rethink a section that looks wrong on your own products.
17 to 20 NovTest on a real phone: the banner over the header, the timer's end state, a code applied at checkout.Problems found now cost an evening. Problems found on the 27th cost the day.
21 to 26 NovStop installing apps and editing code. Show the sections on the 26th, or let them switch on by themselves.Peak weekend is the worst moment to learn that a new script conflicts with your cart drawer.
27 to 30 NovChange only copy and sold-out products. Keep a note of what you changed.A store selling well does not need a redesign at noon.
1 DecTake everything down with the checklist at the end of this post.A "sale ends today" banner in December undoes the trust the sale built.

What to change, and what to leave alone

A theme change the week before your biggest weekend replaces every page at once, including the ones that were already working. Sections let you change the parts that carry the campaign and nothing else. Shopify's JSON templates hold up to 25 sections each, so space is rarely the constraint; attention is. A shopper can take in one offer and one deadline.

JobWhere it goesYour theme may already do itAdd a custom section when
Say what the offer isHeader group, every pageMost themes have an announcement barYou want the code to copy with a tap, or several offers in rotation
Give a real deadlineHome page, campaign collectionRarely built inAlmost always; few themes include a countdown
Catch people who need a nudgeCorner of long pagesNoYou have one strong code and would rather not use a pop-up
Help gift buyers chooseHome page, below the heroFeatured collection and collection list do this wellRarely. Start with what the theme gives you

Leave the product page's buy area, the cart and the navigation alone unless something is broken. Those are the pieces where a small mistake costs sales on every order, and a campaign does not need them to change.

Urgency that is true

A countdown works because the deadline is real. A timer that resets for each visitor, or a sale that gets extended every time it ends, is a false claim about your prices. Regulators in several markets treat it that way, and repeat customers notice. Pick an end time you will actually honor, then set the discount in Shopify to end at that same time, so the timer and the checkout can't disagree.

A sale banner with a large rolling countdown of days, hours, minutes and seconds beside a photograph and a button
Pulse Countdown CTA, a free section from Klorr. Notice that the time is the biggest thing in the band and the button is the only other thing asking for attention. Its end time is set in your store's time zone, and you choose what happens at zero.

Whatever timer you use, test the moment it hits zero before the sale starts. Set the end date five minutes ahead on a duplicate theme and watch. The options are to hide the timer, swap in a message, or hide the band. A row of zeros on the home page for a week after the sale is the failure to avoid, and it is the most common one because nobody looks at the end state until it happens.

Top ribbon or corner card

These two do different jobs, and running both on a phone leaves very little page for the product. A ribbon is for everyone: it states the offer on every page without interrupting. A corner card is for someone who has read for a while and not bought, so it can wait for a scroll depth and carry a code.

A slim promotional ribbon at the top of a store with rolling messages that unfolds into a panel with a photo and terms
Sticky Promo Ribbon (€4, or €3 with a plan) rolls several offers and can write a live countdown into a message. The useful detail is the unfolding panel: the terms of the offer are one press away, so the bar itself can stay short.
A discount card sliding in from the corner of a store page with a code button that copies itself
Slide-In Offer Banner (€7, or €5 with a plan) comes in after a scroll or a delay you set. Watch the drag at the end: a shopper who isn't ready tucks it into a small tab and can pull it back, which is kinder than a pop-up that has to be dismissed.

A banner that switches itself on and off

If you want a message to appear at exactly midnight, Liquid is the wrong place for the check. Shopify's documentation for the date filter says the timestamp reflects when the Liquid was last rendered and might not update for every page view. A {% if %} on now can therefore keep showing the old state for a while. Comparing in the browser avoids that: the section is always in the page, hidden, and a few lines of JavaScript reveal it during the window.

The dates include a UTC offset, so the moment is the same for every shopper wherever they are. There is no date picker among Shopify's setting types, which is why these are text fields. The section stays visible in the theme editor so you can style it before the sale.

sections/offer-window.liquid
<offer-window
  class="ow-{{ section.id }}"
  data-start="{{ section.settings.start_at | escape }}"
  data-end="{{ section.settings.end_at | escape }}"
  {% unless request.design_mode %}hidden{% endunless %}
>
  <p class="ow-{{ section.id }}__text">{{ section.settings.message | escape }}</p>
  {%- if section.settings.code != blank -%}
    <button
      type="button"
      class="ow-{{ section.id }}__code"
      data-code="{{ section.settings.code | escape }}"
      data-copied="{{ section.settings.copied_label | escape }}"
    >
      <span data-label>{{ section.settings.copy_label | escape }} {{ section.settings.code | escape }}</span>
    </button>
    <span class="ow-{{ section.id }}__status" role="status"></span>
  {%- endif -%}
  {%- if section.settings.link != blank and section.settings.link_label != blank -%}
    <a class="ow-{{ section.id }}__link" href="{{ section.settings.link }}">{{ section.settings.link_label | escape }}</a>
  {%- endif -%}
</offer-window>

<style>
  .ow-{{ section.id }} {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 10px 16px;
    text-align: center;
    background: {{ section.settings.background }};
    color: {{ section.settings.text_color }};
  }
  .ow-{{ section.id }}[hidden] { display: none; }
  .ow-{{ section.id }}__text { margin: 0; }
  .ow-{{ section.id }}__code {
    min-height: 44px;
    padding: 0 14px;
    border: 1px dashed currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .ow-{{ section.id }}__link { color: inherit; }
  .ow-{{ section.id }}__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
</style>

<script>
  if (!customElements.get('offer-window')) {
    customElements.define('offer-window', class extends HTMLElement {
      connectedCallback() {
        this.update();
        var button = this.querySelector('[data-code]');
        if (button) {
          button.addEventListener('click', function () {
            var label = button.querySelector('[data-label]');
            var original = label.dataset.original || label.textContent;
            label.dataset.original = original;
            navigator.clipboard.writeText(button.dataset.code).then(function () {
              label.textContent = button.dataset.copied;
              button.nextElementSibling.textContent = button.dataset.copied;
              setTimeout(function () { label.textContent = original; }, 2000);
            });
          });
        }
      }
      disconnectedCallback() {
        clearTimeout(this.timer);
      }
      update() {
        if (window.Shopify && Shopify.designMode) {
          this.hidden = false;
          return;
        }
        var start = Date.parse(this.dataset.start);
        var end = Date.parse(this.dataset.end);
        var now = Date.now();
        this.hidden = !((isNaN(start) || now >= start) && (isNaN(end) || now < end));
        var next = now < start ? start : now < end ? end : NaN;
        // setTimeout overflows past about 24 days, so only wait for a change that is close.
        if (!isNaN(next) && next - now < 2000000000) {
          this.timer = setTimeout(this.update.bind(this), next - now + 500);
        }
      }
    });
  }
</script>

{% schema %}
{
  "name": "Offer window",
  "tag": "section",
  "settings": [
    { "type": "text", "id": "message", "label": "Message", "default": "Black Friday: 20% off everything" },
    { "type": "text", "id": "start_at", "label": "Show from", "default": "2026-11-27T00:00:00-05:00", "info": "Date, time and UTC offset, in exactly this format." },
    { "type": "text", "id": "end_at", "label": "Hide from", "default": "2026-12-01T00:00:00-05:00", "info": "Use the moment your discount ends." },
    { "type": "text", "id": "code", "label": "Discount code", "info": "Leave empty for an automatic discount." },
    { "type": "text", "id": "copy_label", "label": "Copy button text", "default": "Copy code" },
    { "type": "text", "id": "copied_label", "label": "After copying", "default": "Copied" },
    { "type": "text", "id": "link_label", "label": "Link text", "default": "Shop the sale" },
    { "type": "url", "id": "link", "label": "Link" },
    { "type": "color", "id": "background", "label": "Background", "default": "#111111" },
    { "type": "color", "id": "text_color", "label": "Text", "default": "#ffffff" }
  ],
  "presets": [ { "name": "Offer window" } ]
}
{% endschema %}

To install it, follow how to add a custom section to Shopify, then place it in the header group. Two limits to know: the page is served with the hidden section in it, so anyone reading the HTML can see the message and the code before the start time. That means the code has to be protected by its own start date in Discounts. And a shopper with JavaScript off never sees the banner, which is an acceptable loss for a promotional message and would not be for anything essential.

The gift route, using what your theme already has

Around Black Friday, some shoppers are buying for someone else and don't know what they want. They choose by budget and by recipient. You probably don't need new code for this. Create automated collections with a price condition ("under €25", "under €50") or a tag ("for him", "for the kitchen"), then show them with your theme's collection list section under the hero. Each tile is one decision and one click.

Keep the tile count low, three or four, and check that each collection has at least a screenful of products in stock on the 26th. An automated collection with a price condition updates by itself as products sell out or get discounted, so a sale price can move an item into a cheaper tier without any work from you. A custom section earns its place here only when the collection list can't express your idea, such as a guide that asks a question and then recommends.

Four ways to schedule the changes

MethodGood forWatch out for
Self-timing section (the code above)One banner or band with an exact start and endThe content is in the page before it shows. Only the display is timed
The eye icon in the theme editorAnything you can switch on by hand. A hidden section stays configured, and JSON templates store that as disabledSomeone has to be awake at midnight, or you accept a start time that suits you
Duplicate theme, published by handMany changes at once across several templatesThe copy stops following the live theme. Edits made to live after duplicating, including app settings saved in the theme, aren't carried over
LaunchpadStores on Shopify Plus. Shopify's documentation lists prices, product availability and theme customizations among what it schedulesAvailable only on Plus. Run a test event first

Most stores below Plus do best with a mix: discounts scheduled in the admin, sections hidden and ready, and one person who shows them the evening before. Choosing a start time you'll be awake for is a legitimate strategy, and starting at 9pm the night before loses far less than a banner that fails at midnight with nobody watching.

The ten-minute test before the 21st

  1. Open the preview of the theme on your own phone, on mobile data, with the banner showing. Check how much of the first screen is left for the product.
  2. Copy the code from the banner and apply it at checkout. Do this on a real test order so you see the discount line.
  3. Set a timer to end in five minutes on a duplicate theme and watch the end state.
  4. Add to the cart with the ribbon open, and check it doesn't sit above your cart drawer.
  5. Tab through the page on a laptop. A new banner or card should be reachable, and it should have a visible focus ring.
  6. Check the discount combines the way you think it does with any existing automatic discount, because a code that silently doesn't apply is a support ticket per customer.

Taking it down on 1 December

Campaign sections left in a store are the reason next year's theme has a hidden "BF 2023" banner in it. Keep a short list as you go, then remove things in this order:

  • Hide the sections first, and load the store on a phone to confirm nothing looks odd. Delete them a week later, once you're sure you won't extend anything.
  • Check that the discounts ended, and turn off any you ran by hand.
  • Clear compare-at prices you added for the sale, in bulk, from the products they apply to.
  • Remove the campaign collection from navigation, but keep the collection unpublished rather than deleting it. You can reuse it next November.
  • Delete the duplicate theme you used only for the sale, once the live one is confirmed correct.
  • Save the section files you liked. A file kept in a folder is next year's starting point, and a screenshot of what ran helps you decide what to change.

If you need a band that isn't in your theme and don't want to write it, the marketplace has the ones shown above, and Klorr can write one from a description with the Shopify Liquid code generator. Either way it's a single section file, which makes the December clean-up one delete.

Questions, answered

Should I change my Shopify theme for Black Friday?

Usually not. A theme change replaces every template the week your store is busiest. Adding a few sections to the pages that carry the campaign gets the same message across with far less risk. Change themes in a quiet month.

Can I schedule a Shopify theme change for Black Friday?

Shopify's Launchpad app schedules campaigns including theme customizations, and it is available only on Shopify Plus. On other plans you can publish a duplicate theme by hand, or use a section that shows itself between two dates using a check in the browser.

Will a countdown timer end my Shopify discount automatically?

No. A timer only displays time. The discount has its own start and end dates in Discounts, so set those first and enter the same end time in the timer. If they disagree, a shopper sees a price the checkout won't honor, or the reverse.

When should I add Black Friday sections to my store?

Build and test them by about 20 November with the sections hidden, then show them on the 26th or at the start of your sale. Avoid installing apps or editing theme code in the final week.

How do I remove a Black Friday banner afterwards?

Open the theme editor and hide the section with the eye icon. It stays configured, so you can bring it back if you extend the sale. Once you're sure, remove it. If it is a custom section, you can also delete the file under Sections in the code editor after removing it from every template.

Get the whole section written for you

Describe the section you want. Klorr writes the Liquid, the CSS, the schema and every theme-editor setting — code that lives in your theme and stays yours.