If you are using Divi theme and you want to remove the Zero from the Countdown Timer so this blog will help you in many ways. Generally, In Countdown Timer the day section in countdown timer, by default, there are three digits in Day(s) even if you have any of the days. Suppose we want to count back until 27 days then in the day(s) section the days will be “026”. So we can see that there is an extra 0 in days and we can also remove this zero digit. Please see in the screenshot below.

countdown timer remove zero digit

To remove the Zero from the Countdown timer Please follow the given instructions:

  • Open Wp-content >> Themes >> Divi >> includes >> builder >> scripts >> Open frontend-builder-scripts.js
  • Replace the following code:

  • With the following code written below:

The above code is implemented in the wp-content part.

If you are using a child theme then you will need to follow the given instruction.

  • You will need to create a same folder/file directory as parent theme as follows

Child theme >> includes >> builder >> scripts >> copy the updated “frontend-builder-scripts.js” here.

  • Now open functions.php

Both of the above method described for removing the zero digit from the countdown timer to users and also this will help to remove that extra digit from the countdown timer. Hope this article helped you and if you have any issue or any suggestion regarding the post then please let us know. Please feel free  and leave your precious comments to the topic, we will be highly glad to help you out. Have a great day! Best of Luck

You May Also Like

  • Tested on Divi Theme Version 3.0.9
Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

You have Successfully Subscribed!

Share This