Athens Theme Countdown Timer: How to Shrink Height & Customize Heading Color on Shopify

Hey there, fellow store owners! As someone who spends a lot of time sifting through the Shopify community forums, I often come across those little design challenges that can feel like huge roadblocks. You know, the ones where the theme editor just won't quite let you do what you envision? Well, I recently saw a fantastic discussion involving a store owner, offroadjim, and some helpful community experts, Moeed and Ploqo, tackling exactly this kind of issue with the Athens theme's countdown timer.

offroadjim was trying to get their countdown timer to be super thin – essentially a sleek strip – but the Athens theme's built-in slider only went down to 200 pixels. Even after diving into the countdown-timer.liquid file and changing the value to 100, the visual height wouldn't budge. It's a classic example of a theme having a minimum height built into its CSS that the editor can't easily override. This is a common hurdle, and it's where a little custom CSS comes to the rescue!

The Countdown Timer Conundrum: Too Tall!

offroadjim’s problem was clear: the default countdown timer in their Athens theme was just too chunky for their liking. They wanted it to be a minimal strip, like this:

Desired thin countdown timer strip

But it stubbornly remained much taller, even after tweaking the settings:

Countdown timer before customization

Two Ways to Shrink That Timer

The community quickly jumped in with solutions, and it's great to see a couple of different (but equally effective) approaches emerge. Both involve adding a bit of custom CSS, but in slightly different places. Remember, before you make any code edits, it's always smart to duplicate your theme first! That way, you've got a safe backup.

Method 1: Adding CSS to your theme.liquid file (Moeed's Approach)

Moeed's solution targets the padding of the countdown content directly and applies it globally. This is a powerful way to override theme defaults.

Here's how to implement it:

  1. Go to your Shopify Admin, navigate to Online Store > Themes.
  2. Find your current theme (Athens, in this case), click Actions > Edit Code.
  3. In the 'Layout' directory, locate the theme.liquid file and click on it.
  4. Scroll all the way to the bottom of the file, just above the closing tag.
  5. Paste the following code:

This code specifically targets the content area within the countdown timer section and sets its padding to zero, overriding any default padding with the !important flag. This should immediately make the timer much thinner, like this:

Countdown timer after height adjustment

offroadjim confirmed that this solution worked perfectly for them, which is always great to hear!

Method 2: Using the Section's Custom CSS Box (Ploqo's Approach)

Ploqo offered a slightly different, and often safer, approach by using the 'Custom CSS' box available within the section settings itself. This method is great because the CSS only applies to that specific section, reducing the chance of unintended side effects elsewhere on your store.

Here's how to do it:

  1. In your Shopify Admin, go to Online Store > Themes > Customize.
  2. In the theme editor, click on the Countdown timer section in the left sidebar.
  3. Scroll all the way down in the section settings until you find and open Custom CSS.
  4. Paste this code into the box:
.section-countdown-timer .section-countdown-wrap {
  min-height: 0;
}
.section-countdown-timer .section-countdown-content {
  padding: 10px;
}

Custom CSS box with the code pasted

  1. Click Save.

Save button

Ploqo also mentioned that if you want it even thinner, you can change the padding: 10px; to padding: 4px; or whatever value suits your design. This approach is often preferred because it keeps your custom styles localized to the specific section, making your theme easier to manage and update in the long run.

Here's what it looks like with Ploqo's code:

After: thin countdown strip

Bonus Tip: Changing the Countdown Heading Color

After successfully shrinking the timer, offroadjim had another excellent question: how to change the color of the heading text within the countdown timer. The theme editor usually offers bold and italic options, but color control isn't always there.

Moeed came back with an equally straightforward CSS solution to add to the existing code in your theme.liquid file:

  1. If you used Moeed's first method, simply open your theme.liquid file again.
  2. Locate the

    Note: You can replace red with any color name or hex code (e.g., #FF0000 for red, #0000FF for blue, or even var(--color-accent-1) to use a theme-defined color variable) that matches your brand! The !important flag ensures your custom color overrides any default styling.

    Here's what that looks like:

    Countdown timer with red heading

    The beauty of CSS is that once you understand how to target specific elements, you can change almost anything! It's a fundamental skill for any store owner looking to push past the limits of their theme's built-in options. Whether you're customizing a countdown timer or just starting your journey to build your online store, remember these small tweaks can make a big difference in how professional and branded your site feels. Don't be afraid to experiment (on a duplicated theme, of course!), and always lean on the fantastic Shopify community for help when you get stuck!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools