Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter contremaitre

    (@contremaitre)

    I played around with the dev version (1.5.3), and I have a workaround which almost work :
    add :
    define(“PLL_CACHE_HOME_URL”,false);
    in include/model.php

    All links are fixed except one :
    The “home” link in my flexi page widget menu which always point to the default language instead of current language.
    The “home link” on my header logo works fine, so I don’t know if it’s a bug in polylang or flexi pages Widget plugin.

    Plugin Author Chouby

    (@chouby)

    Hi!

    By default, Polylang translates the home link for the theme, but not for plugins (I stopped doing this because it conflicted with too much plugins).

    You can add this in a custom plugin:

    add_filter('pll_home_url_white_list', create_function('$arr', "return array_merge(\$arr, array(array('function' => 'flexipages_get_pages')));"));

    Also you should not modify the Polylang files as they will be overwritten at next update. You can simply add

    define("PLL_CACHE_HOME_URL",false);

    to your wp-config.php

    This fix didn’t work for me though.. Hope you can help me! I also work with MU Domain Mapping.

    I have 2 domains linked to a blog in a netwerk installation.

    Network url: https://www.domain.com/blog

    Site/language one: https://www.language-one.com/ -> primary
    Site/language two: https://www.language-two.com/

    The primary domain works, but the second domain always gets redirected to the first domein. I can’t figure out why because I configured Polyland to use the second domain for the second language.
    Am I using the wrong settings?

    I cannot even get polylang to work with mudomain mapping. When I set the front page to a static page, it will result in an infinite redirect loop. Could you kindly tell me how you setup polylang with multisite and mu domain? Thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with polylang / multisite domain mapping / static home page link’ is closed to new replies.