Title: [Plugin: CSS &amp; JavaScript Toolbox] Broken on SSL Admin
Last modified: August 20, 2016

---

# [Plugin: CSS & JavaScript Toolbox] Broken on SSL Admin

 *  Resolved [Frederick D.](https://wordpress.org/support/users/freddyware/)
 * (@freddyware)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-css-javascript-toolbox-broken-on-ssl-admin/)
 * For whatever reason, the plugin tries to load JS and CSS files on the Admin page
   from my site over HTTP when I’m using forced SSL on `wp-admin`. As a result, 
   my browser is prohibiting execution of JavaScript, which somewhat breaks the 
   page.
 * I think WordPress has dynamic functions meant to avoid this kind of problem —
   [http://codex.wordpress.org/Determining_Plugin_and_Content_Directories](http://codex.wordpress.org/Determining_Plugin_and_Content_Directories)
 * Could you explore a fix?
 * Thanks.
 * [http://wordpress.org/extend/plugins/css-javascript-toolbox/](http://wordpress.org/extend/plugins/css-javascript-toolbox/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Frederick D.](https://wordpress.org/support/users/freddyware/)
 * (@freddyware)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-css-javascript-toolbox-broken-on-ssl-admin/#post-2957019)
 * Actually, I fixed it. On line 56,
 * Changing
    `define('CJTOOLBOX_URL', WP_PLUGIN_URL . '/' . CJTOOLBOX_NAME );` and
   the block immediately after it to
 *     ```
       define('CJTOOLBOX_URL', plugin_dir_url(__FILE__) );
       define('CJTOOLBOX_MEDIA_URL', CJTOOLBOX_URL . 'public/media');
       define('CJTOOLBOX_CSS_URL', CJTOOLBOX_URL . 'public/css');
       define('CJTOOLBOX_JS_URL', CJTOOLBOX_URL . 'public/js');
       ```
   
 * seems to work.
 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-css-javascript-toolbox-broken-on-ssl-admin/#post-2957120)
 * Hi Frederick,
 * I apologise for the delay in getting back to you, I have been very busy on a 
   number of other projects.
 * I thoroughly appreciate you taking the time to solve the issue yourself and then
   write down your findings and code fix on here. I will keep this issue in mind
   when I release the next version. Thanks very much. 🙂
 * Regards,
    Damian

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: CSS & JavaScript Toolbox] Broken on SSL Admin’ is closed to 
new replies.

 * ![](https://ps.w.org/css-javascript-toolbox/assets/icon-256x256.gif?rev=3132209)
 * [CSS & JavaScript Toolbox](https://wordpress.org/plugins/css-javascript-toolbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/css-javascript-toolbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/css-javascript-toolbox/)
 * [Active Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/css-javascript-toolbox/reviews/)

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 2 replies
 * 2 participants
 * Last reply from: [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-css-javascript-toolbox-broken-on-ssl-admin/#post-2957120)
 * Status: resolved