Title: Hide elements when timer finishes
Last modified: February 2, 2022

---

# Hide elements when timer finishes

 *  Resolved [ZLC](https://wordpress.org/support/users/kindnessville/)
 * (@kindnessville)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/hide-elements-when-timer-finishes/)
 * Hi Nabil,
 * I have an evergreen timer set to display a message when it finishes. That part
   works wonderfully.
 * I was wondering if it was possible to additionally hide some elements on the 
   page with the timer when it finishes.
 * Is there any script I can add to the page that could accomplish this?
 * Thanks so much for your help!

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

 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/hide-elements-when-timer-finishes/#post-15352385)
 * Hi [@kindnessville](https://wordpress.org/support/users/kindnessville/)
 * This code snippet should help:
 *     ```
       add_action('wp_footer', function(){
           ?>
       <script>
           (function($){
   
               $(document).on('hurryt:finished', '.hurrytimer-campaign', function(){
                   $('.element-to-hide').hide();
               });
   
               })(jQuery);
       	</script>
           <?php
       });
       ```
   
 * You can replace `.element-to-hide` with the element class or ID you want to hide.
 * I hope this help.
 * Let me know if you have any questions.
 * Best,
    Nabil
 *  Thread Starter [ZLC](https://wordpress.org/support/users/kindnessville/)
 * (@kindnessville)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/hide-elements-when-timer-finishes/#post-15359383)
 * Thank you so much, Nabil. I’m assuming that I put this snippet in my functions.
   php
 * I will try it and let you know if I have any other questions.
 * I appreciate your help!
    -  This reply was modified 4 years, 3 months ago by [ZLC](https://wordpress.org/support/users/kindnessville/).

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

The topic ‘Hide elements when timer finishes’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [ZLC](https://wordpress.org/support/users/kindnessville/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/hide-elements-when-timer-finishes/#post-15359383)
 * Status: resolved