Title: jquery-colorbox breaking HTTPS
Last modified: August 20, 2016

---

# jquery-colorbox breaking HTTPS

 *  Resolved [Declan](https://wordpress.org/support/users/declanon/)
 * (@declanon)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/jquery-colorbox-breaking-https/)
 * Hi Folks, I have jquery-colorbox installed on a site I am managing. The website
   takes donations online so it has a SSL installed. The problem is when the user
   navigates to the checkout page, they are redirected to a HTTPS page. But the 
   HTTPS is broken because of the following line of code.
 * Does anyone know how I can update the plugin so this line is HTTPS?
 * `<link rel='stylesheet' id='colorbox-theme10-css' href='http://www.naha-inc.org/
   wp-content/plugins/jquery-colorbox/themes/theme10/colorbox.css?ver=4.2' type='
   text/css' media='screen' />`
 * Thanks Declan
 * [http://wordpress.org/extend/plugins/jquery-colorbox/](http://wordpress.org/extend/plugins/jquery-colorbox/)

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

 *  Plugin Contributor [techotronic](https://wordpress.org/support/users/techotronic/)
 * (@techotronic)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/jquery-colorbox-breaking-https/#post-2449960)
 * you’re right about that, all URLs generated by the plugin for JS or CSS are HTTP
   only.
    This will be fixed in the next version of the plugin.
 * The secret is to use the “plugins_url” function instead of the “WP_PLUGIN_URL”
   constant.
    Change the declaration of “JQUERYCOLORBOX_PLUGIN_URL” in jquery-colorbox.
   php
 * from:
    `define('JQUERYCOLORBOX_PLUGIN_URL', WP_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);`
 * to:
    `define('JQUERYCOLORBOX_PLUGIN_URL', plugins_url('', __FILE__));`
 * Cheers,
    Arne
 *  Thread Starter [Declan](https://wordpress.org/support/users/declanon/)
 * (@declanon)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/jquery-colorbox-breaking-https/#post-2449961)
 * Hi Arne, we figured it out a while ago. I should’ve posted the solution here 
   for others 🙂
 * Thanks, Declan

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

The topic ‘jquery-colorbox breaking HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-colorbox_848c98.svg)
 * [jQuery Colorbox](https://wordpress.org/plugins/jquery-colorbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-colorbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-colorbox/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-colorbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-colorbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-colorbox/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Declan](https://wordpress.org/support/users/declanon/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/jquery-colorbox-breaking-https/#post-2449961)
 * Status: resolved