WordPress.org

Support

Support » Plugins and Hacks » Ultimate Tag Cloud Widget » [Resolved] [Plugin: Ultimate Tag Cloud Widget] Fix Hard-Coded Plugin Paths for those using custom content path

[Resolved] [Plugin: Ultimate Tag Cloud Widget] Fix Hard-Coded Plugin Paths for those using custom content path

  • Whenever I set up a WordPress site, I always change/rename my content folder path (normally wp-content) using the WP_CONTENT_DIR and WP_CONTENT_URL options in wp-config.php. Unfortunately, UTCW uses a hard-coded path for it’s JavaScript and CSS files. This causes them to not load on my sites.

    If you could please update your plugin in the future to accomodate for this, I would appreciate it.

    For those that have run into the same issue as I have, here’s what I did to fix it. In the file ultimate-tag-cloud-widget.php, I added the following line to the list of other defines:
    define("UTCW_DEFAULT_PLUGIN_PATH", plugin_dir_url(__FILE__) );

    Scroll down to near the bottom of the file (around Line 960) to find the registration of the JS and CSS files. Change them to:

    wp_register_script('utcw-js', UTCW_DEFAULT_PLUGIN_PATH . 'utcw.min.js', array('jquery'), "1.3", false);
    wp_register_style('utcw-css', UTCW_DEFAULT_PLUGIN_PATH . 'utcw.min.css', array(), "1.3", 'all');

    This should fix the issue.

    http://wordpress.org/extend/plugins/ultimate-tag-cloud-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Ultimate Tag Cloud Widget] Fix Hard-Coded Plugin Paths for those using custom content path’ is closed to new replies.
Skip to toolbar