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');
- The topic ‘WordPress Fotorama plugin link for HTTPS’ is closed to new replies.