I’m hoping you can help. We run over 200 sites using your plugin so it makes sense for us to have our plugin folder at the root of the server.
The plugin mainly works, but the scripts or CSS don’t point to the right place. They still point to the wp-content/plugins folder.
We set it up like this in our WP-Config file
define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/plugins' ); define('WP_PLUGIN_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/plugins');
I’ve even tried adding (suggested on another form, but really shouldn’t be required)
define('PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/plugins' );
Using this method, console reports errors trying to load the scripts from the server path with an http:// infront of it, it makes no change to the CSS files.
I am able to fix this by editing the plugin and changing instances of “‘/’ . PLUGINDIR .” to “WP_PLUGIN_URL” – but that kills my update path.
Hoping you can help!
- The topic ‘Scripts / CSS Broken when changing plugin directory’ is closed to new replies.