Title: Static number
Last modified: June 23, 2020

---

# Static number

 *  Resolved [ginjared](https://wordpress.org/support/users/ginjared/)
 * (@ginjared)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/static-number/)
 * How do i set up the numbers so they count to the same amounts everytime when 
   the page is scrolled on?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstatic-number%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [preetam27](https://wordpress.org/support/users/preetam27/)
 * (@preetam27)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/static-number/#post-13027587)
 * hi [@ginjared](https://wordpress.org/support/users/ginjared/) ,
 * the counter always work after loading site..there is no way you the counter keep
   count no.when scrolling the page..
 * thanks
 *  [blackish](https://wordpress.org/support/users/blackish/)
 * (@blackish)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/static-number/#post-13341626)
 * [@ginjared](https://wordpress.org/support/users/ginjared/),
 * change the file’s(/wp-content/plugins/counter-number-showcase/assets/js/counter_nscript.
   js) content to:
 *     ```
       var worked = 0;
   
       jQuery(document).ready(function( jQuery ) {
       jQuery(window).scroll(function() {
           var top_of_element = jQuery('.counter').offset().top;
           var bottom_of_element = jQuery('.counter').offset().top + jQuery('.counter').outerHeight();
           var bottom_of_screen = jQuery(window).scrollTop() + jQuery(window).innerHeight();
           var top_of_screen = jQuery(window).scrollTop();
   
           if ((bottom_of_screen > top_of_element) && (top_of_screen < bottom_of_element) && worked == 0){
               jQuery('.counter').counterUp({
                   delay: 20,
                   time: 2000
               });
       	worked = 1;
           }
       });
           });
       ```
   
 * and replace `t.waypoint(i,{offset:"100%",triggerOnce:!0})` with `i()` in /wp-
   content/plugins/counter-number-showcase/assets/js/jquery.counterup.min.js
 *  [preetam27](https://wordpress.org/support/users/preetam27/)
 * (@preetam27)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/static-number/#post-13353823)
 * hi [@blackish](https://wordpress.org/support/users/blackish/) ,
 * did you face some issue using the first script..please explain to us the issue
   first.
 * thanks
 *  [blackish](https://wordpress.org/support/users/blackish/)
 * (@blackish)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/static-number/#post-13362150)
 * hello [@preetam27](https://wordpress.org/support/users/preetam27/) ,
    the code
   above is solving the issue when the counter numbers are changing while scrolling
   the page up and down.
 *  [preetam27](https://wordpress.org/support/users/preetam27/)
 * (@preetam27)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/static-number/#post-13369737)
 * hi [@blackish](https://wordpress.org/support/users/blackish/) ,
 * glad that the issue has been resolved..please rate us
 * thanks

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

The topic ‘Static number’ is closed to new replies.

 * ![](https://ps.w.org/counter-number-showcase/assets/icon-256x256.png?rev=1704297)
 * [Counter Number Showcase, Fun Facts - Wordpress Animated Counter Plugin](https://wordpress.org/plugins/counter-number-showcase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/counter-number-showcase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/counter-number-showcase/)
 * [Active Topics](https://wordpress.org/support/plugin/counter-number-showcase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/counter-number-showcase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/counter-number-showcase/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [preetam27](https://wordpress.org/support/users/preetam27/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/static-number/#post-13369737)
 * Status: resolved