Support » Plugin: jQuery Colorbox » jquery-colorbox breaking HTTPS

  • Resolved Declan


    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='' type='text/css' media='screen' />

    Thanks Declan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor techotronic


    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


    define('JQUERYCOLORBOX_PLUGIN_URL', plugins_url('', __FILE__));


    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.