Title: [Plugin: FancyBox for WordPress] Doesn&#039;t respect HTTPS protocol
Last modified: August 20, 2016

---

# [Plugin: FancyBox for WordPress] Doesn't respect HTTPS protocol

 *  [Patrick Daly](https://wordpress.org/support/users/developdaly/)
 * (@developdaly)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-fancybox-for-wordpress-doesnt-respect-https-protocol/)
 * Scripts and styles should be queued using a function that can check whether to
   load static resources as `http` or `https`.
 * Currently, the plugin uses constants like these:
 *     ```
       $wp_content_url .= '/wp-content';
       $wp_content_dir = ABSPATH . 'wp-content';
       $wp_plugin_url = $wp_content_url . '/plugins';
       $wp_plugin_dir = $wp_content_dir . '/plugins';
   
       define( 'FBFW_PATH', $wp_plugin_dir . '/fancybox-for-wordpress' );
       define( 'FBFW_URL', $wp_plugin_url . '/fancybox-for-wordpress' );
       ```
   
 * Instead, it’d be more helpful to simply use `plugins_url` which respects the 
   protocol. This is an issue if you’re using `https` because the browser displays
   warnings of insecure content.
 * Here’s some code you can use in a plugin or theme to deregister all scripts/styles
   and re-register them using the correct protocol: [http://pastebin.com/ur8DSN4s](http://pastebin.com/ur8DSN4s)
 * [http://wordpress.org/extend/plugins/fancybox-for-wordpress/](http://wordpress.org/extend/plugins/fancybox-for-wordpress/)

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

 *  Thread Starter [Patrick Daly](https://wordpress.org/support/users/developdaly/)
 * (@developdaly)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-fancybox-for-wordpress-doesnt-respect-https-protocol/#post-2672256)
 * Use this link instead: [http://pastebin.com/gYNpHqwt](http://pastebin.com/gYNpHqwt)
 *  [jameslnewell](https://wordpress.org/support/users/jameslnewell/)
 * (@jameslnewell)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-fancybox-for-wordpress-doesnt-respect-https-protocol/#post-2672555)
 * Thanks for the temporary fix! Looking forward to this being incorporated into
   the plugin itself.

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

The topic ‘[Plugin: FancyBox for WordPress] Doesn't respect HTTPS protocol’ is closed
to new replies.

 * ![](https://ps.w.org/fancybox-for-wordpress/assets/icon-256x256.jpg?rev=1864321)
 * [FancyBox for WordPress](https://wordpress.org/plugins/fancybox-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fancybox-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fancybox-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/fancybox-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fancybox-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jameslnewell](https://wordpress.org/support/users/jameslnewell/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-fancybox-for-wordpress-doesnt-respect-https-protocol/#post-2672555)
 * Status: not resolved