Title: Polylang widget with flags ( https )
Last modified: August 20, 2016

---

# Polylang widget with flags ( https )

 *  Resolved [mtz92](https://wordpress.org/support/users/mtz92/)
 * (@mtz92)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/polylang-widget-with-flags-https/)
 * Hi,
    I included the polylang widget in my theme (with flags). The problem is,
   that if I access the site trough https, my browser says that not everything is
   loaded over https. In fact, the img src of the polylang language flags is “[http://&#8230](http://&#8230);.”
 * Is it possible to fix this?
 * Thank you! 🙂
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/polylang-widget-with-flags-https/#post-3014516)
 * Did you put the https in “Site Address (URL)” in the General settings?
 *  Thread Starter [mtz92](https://wordpress.org/support/users/mtz92/)
 * (@mtz92)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/polylang-widget-with-flags-https/#post-3014571)
 * sorry, I didn’t explain well. I want to use both http and https, and that if 
   http is used everything is loaded over http ( same for https ).
    Is that possible?
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/polylang-widget-with-flags-https/#post-3014587)
 * Create a file my_settings.php inside wp-content and copy this:
 *     ```
       <?php
       /*
       Plugin Name: my settings
       */
   
       if (is_ssl())
       define('POLYLANG_URL', 'https://yoursite/wp-content/plugins/polylang');
       else
       define('POLYLANG_URL', 'http://yoursite/wp-content/plugins/polylang');
       ```
   
 * Activate the plugin.
    Hope it works.
 * NB1: the name of the plugin is important as it must be loaded before polylang.
 * NB2: For v0.9, I will slightly change polylang so that it will be possible to
   put the code inside the file ‘wp-content/polylang/pll-config.php’ instead of 
   creating a new plugin. Unfortunately, POLYLANG_URL is currently defined before
   the file pll-config.php is loaded.
 *  Thread Starter [mtz92](https://wordpress.org/support/users/mtz92/)
 * (@mtz92)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/polylang-widget-with-flags-https/#post-3014588)
 * it works perfectly!
 * Thank you so much! 🙂

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

The topic ‘Polylang widget with flags ( https )’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mtz92](https://wordpress.org/support/users/mtz92/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/polylang-widget-with-flags-https/#post-3014588)
 * Status: resolved