Title: Cwackerfuss's Replies | WordPress.org

---

# Cwackerfuss

  [  ](https://wordpress.org/support/users/cwackerfuss/)

 *   [Profile](https://wordpress.org/support/users/cwackerfuss/)
 *   [Topics Started](https://wordpress.org/support/users/cwackerfuss/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cwackerfuss/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cwackerfuss/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cwackerfuss/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cwackerfuss/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cwackerfuss/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Blank Page after Login with Fatal Error Notice](https://wordpress.org/support/topic/blank-page-after-login-with-fatal-error-notice/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/blank-page-after-login-with-fatal-error-notice/#post-4252938)
 * That worked, so it has to be an issue with my theme.
 * Could you give me any recommendations on looking for where the error could be?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to move blog to its own page?](https://wordpress.org/support/topic/unable-to-move-blog-to-its-own-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years ago](https://wordpress.org/support/topic/unable-to-move-blog-to-its-own-page/#post-3775878)
 * Thank you WPyogi,
    I’ll give them a try. Cheers.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to move blog to its own page?](https://wordpress.org/support/topic/unable-to-move-blog-to-its-own-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years ago](https://wordpress.org/support/topic/unable-to-move-blog-to-its-own-page/#post-3775864)
 * WPyogi,
 * I am using GeoTheme.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems Using JavaScript on a Page](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/#post-3729852)
 * Esmi! Andrew! I got it to work!!
 * I simply added `<div id="counter"></div> Network Users` inside the page. Perfect!
   Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems Using JavaScript on a Page](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/#post-3729846)
 * A static page
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems Using JavaScript on a Page](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/#post-3729843)
 * Just a specific page.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems Using JavaScript on a Page](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/#post-3729841)
 * Thanks for the speedy response,
    Do I use add_action(‘wp_print_scripts’, ‘meal_counter_js’,
   1); within the page’s content to call on the script?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems Using JavaScript on a Page](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/#post-3729839)
 * Hey Andrew Nevins,
 * I’ve been reading more about enqueue-ing and just have a few questions as to 
   the process.
 * I first put my JS file in the js folder.
    Then I add this code to the Functions.
   php folder: function meal_counter_js () { wp_enqueue_script(‘meal_counter’, get_template_directory_uri().‘
   js/counter.js’, array(‘jquery’), ‘1.0’, false); } // End meal_counter_js()
 * Then how do I call upon the code on a specific page?
 * Thank you for all your help!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems Using JavaScript on a Page](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/)
 *  Thread Starter [Cwackerfuss](https://wordpress.org/support/users/cwackerfuss/)
 * (@cwackerfuss)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-using-javascript-on-a-page/#post-3729627)
 * So this is what the code should look like in WordPress?
 *     ```
       <html>
       <head>
       <title>JavaScript Replace</title>
   
       <script language="JavaScript1.1" type="text/javascript">
       var START_DATE = new Date("October 21, 2012 22:30:00"); // put in the starting date here
       var INTERVAL = 1; // refresh interval in seconds
       var INCREMENT = 769.2;  // increase per tick (1/0.0013 ~ 769)
       var START_VALUE = 35000; // initial value when it's the start date
       var count = 0;
   
       jQuery(document).ready(function($) {
        var msInterval = INTERVAL * 1000;
        var now = new Date();
        count = parseInt((now - START_DATE)/msInterval,10) * INCREMENT + START_VALUE;
        $('#counter').html(count.toFixed(0));
   
        window.setInterval( function(){
           count += INCREMENT;
           $('#counter').html(count.toFixed(0));
        }, msInterval);
   
       });
       </script>
       </head>
       <body>
   
       <div id="counter"></div> Network Users
   
       </body>
       </html>
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_

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