I just installed this plugin on a site that’s running — alas — on IIS, and I noticed console errors indicating that the scripts and stylesheets couldn’t load. Your code for determining the plugin paths doesn’t work on Windows machines. It was easy to fix using WP’s
plugins_urlfunction, though. I replaced your
wp_register_stylelines in shortcode-reference.php with this:
wp_enqueue_style( 'shortcode-reference-style', plugins_url('/css/shortcode-reference.css', __FILE__) ); wp_enqueue_script( 'shortcode-reference-js', plugins_url('/js/shortcode-reference.js', __FILE__) );
… and removed the plugin directory definition and
wp_enqueue_stylelines from the conf file.
- The topic ‘[Plugin: Shortcode Reference] Paths to CSS and JS don't work on IIS servers (easy fix)’ is closed to new replies.