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!