Support » Plugin: Christmas Countdown Widget » countdown stopped working

Viewing 6 replies - 1 through 6 (of 6 total)
  • Decided to remove the plugin until resolved, but a screenshot of the page showing the incorrect countdown days can be viewed here –

    Plugin Author monkeymays


    Hey there..

    I can’t tell exactly what is going on from the screenshot, but it looks as if the countdown date in the script is wrong.

    Are you using the latest version of the plugin? Since last year, it has been updated. Would you try deleting whatever version you have, and reinstalling it, please.

    A quick note about updating to version 2 from a previous version: If you have the countdown in your sidebar and update from a previous version, you will have to visit the Widgets page in your admin and drag the Santa’s Christmas Countdown widget to your side bar.


    Thank you for your reply. Tried deleting and reinstalling without any joy. Familiar with the widgets settings thanks. I also tried another countdown plugin and that also failed, so I suspect that there is possibly a conflict with another plugin, but i have tried uninstalling the last three that updates and then yours again, but no success. Shame.
    maybe I’ll just borrow your cute Santa picture and stick that in the sidebar. Thanks again.

    Hi, just tried again after wp-optimise said their plugin was causing some issues. But same thing again – now says 3 days to Christmas which may cause panic in the streets 🙂

    Here is your current code v2, just in case their is an error.

    Thanks again

    [ Moderator note: please wrap code in backticks or use the code button. ]

    Plugin Name: Christmas Countdown Widget
    Plugin URI:
    Description: Displays a cute Christmas countdown in your sidebar.
    Author: Monica Mays
    Version: 2.0
    Author URI:
    Christmas Countdown Widget is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    any later version.
    Christmas Countdown Widget is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with Christmas Countdown Widget. If not, see <>.
    //Adds Countdown Shortcodes
    function cw_CountDownShortcode_left() {
        return '<div style="float:left;padding-right:15px;"><div id="cw_countdown"><div class="cw_countdown-text">
              <script type="text/javascript">
    add_shortcode('countdown', 'cw_CountDownShortcode_left');
    function cw_CountDownShortcode_right() {
        return '<div style="float:right;padding-left:15px;"><div id="cw_countdown"><div class="cw_countdown-text">
              <script type="text/javascript">
    add_shortcode('countdown-right', 'cw_CountDownShortcode_right');
    //Enqueue Countdown Scripts and Styles
    function cw_santas_countdown_scripts() {
      wp_enqueue_style( 'xmascount-styles', plugins_url( 'css/cw_xmascount-styles.css', __FILE__ ) );
      wp_enqueue_script( 'xmascount-scripts', plugins_url( 'scripts/scriptfile.js', __FILE__ ) );
    add_action( 'wp_enqueue_scripts', 'cw_santas_countdown_scripts' );
    //Extends Countdown Widget
    class cw_axmascount extends WP_Widget {
      function cw_axmascount()
        $widget_ops = array('classname' => 'cw_axmascount', 'description' => 'Drag this widget to your sidebar to display Santa\'s Christmas Countdown.' );
        $this->WP_Widget('cw_axmascount', 'Santa\'s Countdown', $widget_ops);
      function form($instance)
        $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
        $title = $instance['title'];
      <p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
      function update($new_instance, $old_instance)
        $instance = $old_instance;
        $instance['title'] = $new_instance['title'];
        return $instance;
      function widget($args, $instance)
        extract($args, EXTR_SKIP);
        echo $before_widget;
        $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
        if (!empty($title))
          echo $before_title . $title . $after_title;;
        echo '<div id="cw_countdown"><div class="cw_countdown-text">
              <script type="text/javascript">
        echo $after_widget;
    add_action( 'widgets_init', create_function('', 'return register_widget("cw_axmascount");') );
    Plugin Author monkeymays


    Check the ‘scripts/scriptfile.js’ and make sure the date is set to Dec. 25th. It’s all I can think of. I have no idea how it could be wrong, but who knows? Check and let me know, we can keep troubleshooting.

    Sure don’t want to cause panic in the streets 😉

    Here’s one you can use in your sidebar if you want to try it out..

    Js script seems fine thanks. But still no luck, and i prefer this Santa to the other one suggested.

    Thanks for trying to fix it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘countdown stopped working’ is closed to new replies.