Title: WordPress Fotorama plugin link for HTTPS
Last modified: January 17, 2017

---

# WordPress Fotorama plugin link for HTTPS

 *  [vovkasolovev](https://wordpress.org/support/users/vovkasolovev/)
 * (@vovkasolovev)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/wordpress-fotorama-plugin-link-for-https/)
 * Fotorama 4.6.3 use wrong functions for paths to assets. If you install SSL sertificate,
   You will ned to make all links start with HTTPS. To get this right make two changes
   in FOTORAMA.PHP:
 * #1
    `define('FOTORAMA_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname(plugin_basename(
   __FILE__)) . '/');` to `define('FOTORAMA_PLUGIN_URL', plugin_dir_url( __FILE__));`
 * #2
    `wp_register_script('fotoramaDefaults.js', WP_PLUGIN_URL . '/fotoramaDefaults.
   js');` to `wp_register_script('fotoramaDefaults.js', plugin_dir_url() . '/fotoramaDefaults.
   js');`
    -  This topic was modified 9 years, 4 months ago by [vovkasolovev](https://wordpress.org/support/users/vovkasolovev/).

The topic ‘WordPress Fotorama plugin link for HTTPS’ is closed to new replies.

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

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [vovkasolovev](https://wordpress.org/support/users/vovkasolovev/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/wordpress-fotorama-plugin-link-for-https/)
 * Status: not a support question