Title: Evergreen timer not working properly
Last modified: February 4, 2021

---

# Evergreen timer not working properly

 *  Resolved [Divyesh kakrecha](https://wordpress.org/support/users/divyeshk71/)
 * (@divyeshk71)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/evergreen-timer-not-working-properly/)
 * Hey,
 * First of all nice plugin! But one issue in the evergreen timer as I have setup.
 * I have created an Evergreen timer and the set **ends after** 3 days. Also I have
   selected detection method **cookie & IP Address**. So it’s working good yesterday
   but today when I checked the countdown timer restart and show up on 2 days 24:
   59:59 again. It should be showing up 1 Day 24:59:59 but it’s not.
 * I have used the site ground optimization plugin and I have also cleared cache
   serval times and even I checked on my phone but the results are the same for 
   all devices.
 * Could you please take a look or guide me if I did some mistake in settings.
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/evergreen-timer-not-working-properly/#post-14007621)
 * Hi [@divyeshk71](https://wordpress.org/support/users/divyeshk71/)
 * Can you try to exclude the page on which you’re displaying the timer from being
   cached in SG Optimizer?
 * Best,
    Nabil
 *  Thread Starter [Divyesh kakrecha](https://wordpress.org/support/users/divyeshk71/)
 * (@divyeshk71)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/evergreen-timer-not-working-properly/#post-14017081)
 * Hi [@nlemsieh](https://wordpress.org/support/users/nlemsieh/)
 * Actually, I have added a countdown timer in the website header top bar. So it
   will visible on all pages. so we can’t exclude that page from cached.
 * I also want to change the day’s text. Right now I have set endtime for 3 days
   but when it reaches 1 day the day text will be automatically changed `days` to`
   day` and when the day reached 00 then the days will be removed and keep the only
   timer. How can I do this?
 * Please let me know. Thanks.
    -  This reply was modified 5 years, 7 months ago by [Divyesh kakrecha](https://wordpress.org/support/users/divyeshk71/).
 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/evergreen-timer-not-working-properly/#post-14033303)
 * Hi [@divyeshk71](https://wordpress.org/support/users/divyeshk71/)
 * > Actually, I have added a countdown timer in the website header top bar. So 
   > it will visible on all pages. so we can’t exclude that page from cached.
 * Since evergreen timer relies on browser cookies, it may not work properly when
   page is heavily cached.
 * > I also want to change the day’s text. Right now I have set endtime for 3 days
   > but when it reaches 1 day the day text will be automatically changed days to
   > day and when the day reached 00 then the days will be removed and keep the 
   > only timer. How can I do this?
 * While this is not currently doable out of the box, I suggest using this workaround
   by adding this code to functions.php under Appearance menu > Theme Editor:
 *     ```
       add_action('wp_print_footer_scripts', function(){
         ?>
   
       <script>
   
       (function($){
   
       $('.hurrytimer-campaign').on('update.countdown', function(e){
   
       if( e.offset.days === 0 ){
        $(this).find('.hurrytimer-timer-block:eq(0)').hide();
        $(this).find('.hurrytimer-timer-sep:eq(0)').hide();
       }
   
       if( e.offset.days === 1 ){
        $(this).find('.hurrytimer-timer-block:first-child .hurrytimer-timer-label').text('Day');
       }
       });
   
       })(jQuery);
   
       </script>
       <?php });
       ```
   
    -  This reply was modified 5 years, 7 months ago by [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/).
      Reason: code formatting
 *  Thread Starter [Divyesh kakrecha](https://wordpress.org/support/users/divyeshk71/)
 * (@divyeshk71)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/evergreen-timer-not-working-properly/#post-14034259)
 * Hi [@nlemsieh](https://wordpress.org/support/users/nlemsieh/)
 * Thank you for above solution. It’s works now perfectly.
 * Thanks.
    -  This reply was modified 5 years, 7 months ago by [Divyesh kakrecha](https://wordpress.org/support/users/divyeshk71/).

Viewing 4 replies - 1 through 4 (of 4 total)

 The topic ‘Evergreen timer not working properly’ is closed to new replies.

 * ![](https://ps.w.org/hurrytimer/assets/icon-256x256.png?rev=2051519)
 * [HurryTimer - An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce](https://wordpress.org/plugins/hurrytimer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hurrytimer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hurrytimer/)
 * [Active Topics](https://wordpress.org/support/plugin/hurrytimer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hurrytimer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hurrytimer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Divyesh kakrecha](https://wordpress.org/support/users/divyeshk71/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/evergreen-timer-not-working-properly/#post-14034259)
 * Status: resolved