Support » Plugin: Fotorama » WordPress Fotorama plugin link for HTTPS

  • vovkasolovev


    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:

    define('FOTORAMA_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)) . '/');
    define('FOTORAMA_PLUGIN_URL', plugin_dir_url( __FILE__ ));

    wp_register_script('fotoramaDefaults.js', WP_PLUGIN_URL . '/fotoramaDefaults.js');
    wp_register_script('fotoramaDefaults.js', plugin_dir_url() . '/fotoramaDefaults.js');

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