• I installed the plugin and got it working the way I wanted it to but then quickly realized that the plugin (jQuery) broke the rest of my site. I dug a little more into it and found the problem.

    If your looking for a quick fix like I was make these changes:

    1. In the plugin folder open wp-coming-soon.php
    2. Go to line 67
    3. Delete register_scripts_and_styles function
    4. Replace that function with this:

    function register_scripts_and_styles() {
    $lang = get_option(‘wp_coming_soon_language’);

    if ( !is_admin() ) {

    wp_register_script( ‘wp_coming_soon-script’, plugins_url(‘/js/jquery.countdown.js’, __FILE__) , array(‘jquery’) );
    wp_register_style( ‘wp_coming_soon-style’, plugins_url(‘/css/countdown-style.css’, __FILE__) );
    wp_enqueue_script( ‘wp_coming_soon-script’ );
    wp_enqueue_style( ‘wp_coming_soon-style’ );

    if( !empty($lang) && isset($lang) ){
    wp_register_script( ‘wp_coming_soon-script-‘. $lang, plugins_url(‘/js/jquery.countdown-‘. $lang .’.js’, __FILE__) , array(‘jquery’) );
    wp_enqueue_script( ‘wp_coming_soon-script-‘. $lang );
    }

    } // end if/else
    } // end register_scripts_and_styles

    5. On line 88 add $.noConflict(); above jQuery( function($){.

    6. That fixed it for me in version 3.5.1!

    I hope the developer fixes it soon!

    http://ww.wp.xz.cn/extend/plugins/wp-coming-soon/

The topic ‘Plugin Broken’ is closed to new replies.