This post is part 2 of 5 in our mini series titledΒ 5 Impressive Ways to Style Diviβs Countdown Timer Module. Stay tuned this week for all five unique examples of Diviβs countdown module, with a tutorial on how to achieve each one!
I hope youβve been following along with our mini series up to this point! Today is day _ of teaching you how to create impressive countdown timers for your Divi website. As we discussed during day 1, countdown timers can be a very effective way to build anticipation for a new product, website, event, etc.
Like any part of your website though, the countdown timer shouldnβt just be a boring element that is only there to serve itβs functional purpose. It can also be a beautiful part of the page that further brands theΒ company. Unlike yesterdayβs bold & colorful countdown timer that is meant to jump off the page, todayβs customized countdown timer is meant to beautifully blend right into the page like itβs part of a piece of artwork; almost as if itβs part of the background image itself.
The Divi Countdown Module: Before & After
Since this mini series is all about pushing Divi further with customizations, itβs important to see the starting point. Or, the countdown timer in itβs default state.
Now, letβs take a look at what weβll be creating today.
Similar to the first countdown timer we created on day 1 of the series, this countdown timer utilizes a full screen background image. In order for it to live up to being βgorgeousβ as our post title suggests, it needs to start with a gorgeous background photo. Weβll talk more about that in a bit.
The transparency of the countdown background color gives it the βfrosted glassβ look that adds to the winter effect as well as allowing the background image to show through whichΒ helps blend the countdown timer into the image. Lastly, the color utilized in the countdown timer numbers as well asΒ the background of the title, is the same color of the trees in the photo. Again, this helps the countdown timer look like itβs supposed to be part of the image.
Creating the βGorgeous Transparentβ Divi Countdown Timer Module Design
Subscribe To Our Youtube Channel
Preparing the Design Elements
The only design element we have to prepare is the background image. The rest of the countdown timer is created through Diviβs built in controls, as well as custom CSS.
The image weβre going to use can be downloaded for free from PexelsΒ and used without attribution.Β #526771
Go ahead and click on the link above, and click the giant green βFree Downloadβ button.
The last thing we need to do to prepare the design element before heading to Divi is getting the right color to use.Β As I mentioned above, one of the reasons this design works is weβre takingΒ the color that is found in the trees in our image, and putting it in our countdown timer. This helps it blendΒ nicely. So to do that, IβmΒ going to use Photoshop, however thereβs many other tools you can use to grab a color from an image, including the developer tools (inspector) that is found in the Chrome browser.
What makes this particular background image easy to blend with, is the fact that it really only has two colors in various shades: white and the grayish darkΒ green. If youβre going to choose a different image to use as a background image, I would recommend looking for an image that similarly has minimal colors.
Implementing the Design with Divi
Alright, our image has been downloaded, and we know what color to use. Now itβs time to head over to Divi.Β This countdown would look great as an entire landing page or βunder constructionβ page, however, you can also add it to an existing page if youβd like. For this tutorial though, Iβm going to walk you through adding it to a new page, but you can still easily follow along if youβre adding it to an existing page. So, Iβm going to create a new page, give it a title, enable Divi, and click the blue βUse Visual Builderβ button.
If youβre creating a new page like I am, then thereβs already a blank section in place.Β Now weβre going to add aΒ row by clicking on the green (+) circle icon, then click on the icon for the one column row as indicated by the red arrow in the screenshotΒ below.
Divi will automatically prompt you to choose a module from the list. Divi will automatically filter the modules as you start type βcountdown.β Then click on Countdown Timer to add it to the page.
You can go ahead and add a Countdown Timer Title, as well as choose a date. Just for fun, I chose my birthday π
Weβll be back to the module settings in a bit, but for now go ahead click the green checkmark button toΒ save the module andΒ close the settings.
Next, weβre going to add our background image to the section. To do this, hover over the section until you see it outlined in blue. Then, in the upper left, click on the gear icon to open up the section settings.
Then, upload your image as the background image by clicking the upload button as shown in the screenshot below.
Assuming youβre using the same image as me, hereβs what your countdown should be looking like so far.
Weβre making progress!
Adjusting the Module Settings
Now itβs time for us to start digging into the countdown timer settings. Hover over the countdown timer and open up the Module Settings (click on the gear icon in the dark gray set of controls that appears when you hover over the countdown timer).
Below youβll find the settings weβll be changing. If thereβs a setting that isΒ not mentioned, then you can just leave it as default.
In theΒ GeneralΒ settings tab:
- changeΒ background color to: rgba(255,255,255,0.5)
In theΒ DesignΒ settings tab:
- change all fonts to βPT Sans Narrowβ
- changeΒ the HeaderΒ Font toΒ all caps (TT icon)
- changeΒ the Labels Font to bold and all caps (TT icon)
- change the Numbers and LabelsΒ Text Color to #526771
- change the Header Font Size to 29
- change the Numbers Font Size to 65px
- change Labels Font Size to 15px
Adding the Custom CSS
The last thing we need to add is a little custom CSS magic!Β Just like the last two days of this series, you can optionally choose to add the custom CSS to either the Divi Theme Options custom CSS box, or the individual page settings custom CSS box. The difference is the individual page settings will only load the CSS for that page, while adding it to the Divi Theme Options will load the CSS on every page. Either one will work, it just depends on if youβd like to use the same countdown on another page. If so, then go ahead and add it to Divi Theme Options.
You might be wonderingΒ why weβre adding the CSS to one of the two options mentioned above, instead of directly in the CSS tab of the module section or row. The reason is Divi has pre-targeted CSS areas in the CSS tab of the settings forΒ modules, rows, and sections, howeverΒ it doesnβt target every single CSS class that is available in the Divi stylesheet. So weβll need to take things a step further and add our own CSS.
Before we can start adding our CSS though, weβll need to add our own custom classes so that weβll only customize the CSS of the module weβre working on now, and notΒ ALL countdown timers that are on the site or will be on the site.
Open up, the module settings, and click over to the CSS tab of the module settings, and addΒ custom-countdown-3Β as the CSS class.
Now weβre ready to add ourΒ custom CSS!
If you decide to add the CSS just to the one page then youβll need to open up the Divi page settings. To do so, click on the purple gear icon at the bottom of your screen. If you donβt see the gear icon, click the purple button that you do see to expose the rest of the menu. Then, click on the CSS tab and paste the below CSS into the box.
.custom-countdown-3.et_pb_countdown_timer { max-width: 580px; margin-left: auto; margin-right: auto; } .custom-countdown-3.et_pb_countdown_timer .title { background-color: #6f848d; padding-top: 10px; padding-bottom: 10px; width: 90%; margin-left: auto; margin-right: auto; margin-top: -68px; } .custom-countdown-3 .et_pb_countdown_timer .sep { color: #969696; } .custom-countdown-3 .days { margin-right: 12px; }
If you chose to put the custom CSS in the individual Divi page settings like I did, then you probably noticed that the countdown drastically changed instantly. That is of course thanks to the live updating that is part of Diviβs new visual builder. This live updating is great for a lot of reasons but in this example, with the CSS, it allows you to see exactly what the CSS does. Thatβs why I recommend pasting the CSS in several chunks. That will help you learn how the CSS isΒ working. π
Lastly, be sure to save your changes! Youβre going to need to save the changes in the page settings, as well as for the entire page. Now weβre done!
Now go ahead and give yourself a pat on the back for what you just created. It should look something like this:
Tomorrow: How to Create a Bold (Yet Elegant) Colorful Countdown Timer
I hope you were inspired by this tutorial to create your own truly unique and impressive countdown timers on your Divi website! Donβt forget, this is only part 1 of 5 in our mini series. Come back tomorrow where I will be showing you how to create a βbold and colorfulβ countdown timer!
Be sure toΒ subscribe to our email newsletterΒ andΒ YouTube channelΒ so that you never miss a big announcement, useful tip, or Divi freebie!
Love this but having a problem. Does this work on Divi 2.7.5? I cannot get bg color on counter module to change and the one time I did, the bg image of forest disappeared. Any thoughts? Thanks.
Nice video! Very helpful!
Thanks for this, with the settings you’ve given I seem to lose the (s) after days, hours etc when viewing on mobile. Any tips?
Amazing. Thanks Tim!
You’re welcome π
Wouah.. Magnifique.
Really nice. But how can I translate the timer to german?
Looks great! Nice work. π
Thanks Ryan π
That looks great! Would there be any way of adding some animated snowflakes?
Hi Paul,
There’s a few plugins in the repository that come up when you search for “animated snowflakes.” I’d start there. π
Thanks for this
You’re very welcome!