• Problem:
    If HomeUrl differs from SiteUrl (this is the case if wordpress is installed in subdirectory but index.php lies in site root) Countdown doesn’t function.

    Solution:
    In “path-to-plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php” line 483 change:

    'jquery' => !empty($wp_scripts->registered['jquery-core']) ? home_url($wp_scripts->registered['jquery-core']->src) : '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js',

    to

    'jquery' => !empty($wp_scripts->registered['jquery-core']) ? site_url($wp_scripts->registered['jquery-core']->src) : '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js',

    https://www.ads-software.com/plugins/wp-maintenance-mode/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Wrong path to jquery if wordpress is installed in subdirectory’ is closed to new replies.