Hide Days in Countdown Timer Module

Written by Dan Mossop

Divi comes with a countdown timer module that lets you display the days, hours, minutes and seconds left until an event. If you want to hide the days (e.g. if you're promoting same-day events), here's how to do it.

First, here's how the module normally looks, with the days remaining showing:

Hide the Countdown Timer Days using CSS

To stop the countdown timer from displaying days, first give the module a CSS Class of "countdown-timer-without-days" like so:

Next, add the following CSS to your site:
.countdown-timer-without-days .days,
.countdown-timer-without-days .days + .sep {
    display: none !important;
}
You can add it, for example, in the "Divi > Theme Options > General > Custom CSS" box.
You should now see that the days are no longer displayed in the countdown:

Transform Your Pages with Divi Show / Hide Button!

Unleash the full potential of your Divi site with the Divi Show / Hide Button Module. Control the visibility of sections, rows, or modules with ease, create engaging tabs, and style your buttons just like any other Divi button. Perfect for keeping your pages clean and interactive.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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

We may earn a commission when you visit links on our website.