Announcement bar is the best way to inform your site visitors and potential buyers about the latest news, special offers, deals, and promotions. It is also a great way to grab your customers’ attention.

Unlike pop-ups, announcement bars neither irritate nor distract site visitors from the primary content. Thus, to make critical site data always displayed and available, you might even want to make such info bars instantly displayed, and not hidden.

By specifying shipping terms, delivery cost, precise time or conditions of a promo campaign, by announcing holiday sales, offering to sign up to a newsletter and promoting promo codes, you motivate shoppers to complete a purchase. It leads to a tangible increase in conversion rate.

From this article, you’ll learn how to add a customizable announcement bar to your Shopify store in a few mouse clicks. Also, we will guide you through the configurations of a countdown timer without having to install 3rd-party apps and absolutely free of charge. No coding skills are required to add this functionality. All you need to do is copy and paste a few lines of text to the theme of your Shopify store. Read on to learn more.

A little off-topic. If you need an announcement bar with a possibility for a customer to immediately calculate a required amount of money to get a free gift or free shipping ― including advanced configuration possibilities of its look ― take a look at our FREE Shopify Sales Motivator — Promo Bars app.

Sales Motivator — Promo Bars App
Sales Motivator — Promo Bars App
Free
Increase your store profitability with sales motivation bars.

Step-by-Step Guidelines

Step 1. Making Changes in Your Current Shopify Theme

  1. Log in your Shopify store admin panel. Follow the path: Online Store → Themes. In the ‘Actions’ drop-down menu of the theme where you want to add the bar, click ‘Edit code’ (on the screenshot below, see the published theme).
How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

2. In the ‘Sections’ folder, click ‘Add new section’.

How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

3. Type in the name of the section ― announcement-bar ― and click the ‘Create section’ button.

How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

4. Insert this code to the created ‘announcement-bar.liquid’ file and click ‘Save’.

How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

5. In the ‘theme.liquid’ file, find the code </body>. Insert the following code right before that line:

{% section 'announcement-bar' %}

How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

Step 2. Announcement Bar Configuration

Go to Online Store → Themes, and click ‘Customize’ next to the theme you added code to in Step 1. If everything is done correctly in the previous step, you’ll see a newly created ‘Announcement bar’ section. Click on it to start the configuration.

How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

The functionality is rather simple. You can either enable or disable the banner display, edit its content (HTML tags supported), as well as text and background colors, add a link for a customer to follow when clicking on the banner. Also, you get to specify the top margin in case the banner gets covered by other elements.

How to Add Announcement Countdown Timer Bar to Your Shopify Site | MageWorx Shopify Blog

To activate the countdown banner, fill in the ‘Expiration date’ field (pay attention to the date format: YYYY-MM-DD) and check the ‘Enable countdown timer’ box. When required, it is possible to edit the following labels: Days, Hours, Minutes, and Seconds.

When the timer ends, the banner will disappear and will not get further displayed until the ‘Expiration date’ gets changed or the timer is disabled.


That’s it! We hope this solution works for you just fine. Should you have any difficulties or questions, please leave us a comment in the comments field. We will be happy to assist!

(Visited 381 times, 2 visits today)

Leave A Comment

Your email address will not be published. Required fields are marked *