Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Did you put the https in “Site Address (URL)” in the General settings?

    Thread Starter mtz92

    (@mtz92)

    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

    (@chouby)

    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

    (@mtz92)

    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.