• Resolved Igor Lopasovsky

    (@igorlopasovsky)


    Hi Chouby,

    First, thank you for your great plugin, really amazing job.

    Second, I am trying to implement my own language switcher using pll_the_languages but all forum posts and documentation seem to be outdated. Basically, my problem is the same as everyone’s – I successfully implemented the switcher itself but links are not working. I haven’t found any file polylang/include/widget.php, only polylang/include/switcher.php but not sure which code to copy.

    Do you think you can provide more information about how this work in latest version? I have already tried so many different things but no success.

    Thank you very much for help.

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi

    The Polylang documentation regarding the pll_the_languages is not outdated. You can refer you to: https://polylang.pro/doc/function-reference/

    Your issue can provide to your theme. Have you test your custom code with another theme as Twenty Sixteen?

    Thread Starter Igor Lopasovsky

    (@igorlopasovsky)

    Thanks for reply Chouby. I’m using pretty popular theme called Divi and pll_the_languages is working great. The only issue is that switching itself is not working. I can see the a tag, even href is pointing to correct location but it’s not clickable. I read many forum posts and what I don’t understand is which code to use to make it work.

    Many thanks.

    Thread Starter Igor Lopasovsky

    (@igorlopasovsky)

    btw. in documentation you are mentioning file polylang/include/widget.php. I can’t find such file in the latest version of Polylang

    Plugin Author Chouby

    (@chouby)

    Hi!

    This sentence was indeed outdated. I just modified the doc to remove it. There is no more code to copy.

    pll_the_languages() is used by the widget. If the widget works, pll_the_languages() should work. If it doesn’t then as usual, check with Twenty Sixteen + Polylang only. Then switch to your theme and activate other plugins one by one to find the conflict source.

    Thread Starter Igor Lopasovsky

    (@igorlopasovsky)

    Thank you very much Chouby, it makes sense now. I will try your suggestions and let you know.

    Thread Starter Igor Lopasovsky

    (@igorlopasovsky)

    Chouby, just quick update. You were absolutely right, it was working in widget. The problem was in my theme. Some weird theme’s CSS settings caused this issue. All working now. Many thanks for your time.

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

The topic ‘pll_the_languages documentation’ is closed to new replies.