• Hi,

    first of all, many thanks for this plugin!
    I would like to ask a thing…which function I must create to let this code works: <?php pll_the_languages(); ?>

    If i use this script in Twenty Fifteen theme it works perfectly without implementing anything, but in another Theme it doesn’t show anything. So I wonder if I have to create that function.

    I’ve already seen you suggest this: “you *must* check for the its existence before using it,”.

    Can u help me? Thanks a lot again!

    https://www.ads-software.com/plugins/polylang/

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

    (@chrystl)

    Hi
    Could you provide a link to your site?

    Thread Starter astigmatik

    (@astigmatik)

    Plugin Support Chrystl

    (@chrystl)

    Could you give the code that you have tried and where did you put it?

    Just a side note, some “microdata” codes create some span tags in the header. And this give you some errors in your source code with the body and the head tags. You shouldn’t have span tags into the header.

    Thread Starter astigmatik

    (@astigmatik)

    thanks for suggesting about microdata!

    I just copy this into the footer.php:
    <?php pll_the_languages(); ?>

    Plugin Support Chrystl

    (@chrystl)

    You must put this code between <ul></ul>. The flags class is just to give you the possibility to customize your language switcher with the CSS:

    <ul class="flags"><?php pll_the_languages(); ?>
    </ul>

    Does it work?

    Thread Starter astigmatik

    (@astigmatik)

    thanks but it doesn’t display nothing, like if it doesn’t recognize the function

    https://oi66.tinypic.com/281d3iv.jpg

    Plugin Support Chrystl

    (@chrystl)

    Why did you put your code in html comments? That can’t work like this:

    <--?php pll_the_languages(); ?-->
    Thread Starter astigmatik

    (@astigmatik)

    it’s not in the comment, I put <?php pll_the_languages(); ?> but its like it transforms into <–?php pll_the_languages(); ?–>

    Plugin Support Chrystl

    (@chrystl)

    How did you get this result? You should use text editor such as Notepad++.

    Thread Starter astigmatik

    (@astigmatik)

    I use it:) this is the code I write

    <ul class=”flags”><?php pll_the_languages();?>

    but when I see the page front page, it gives a result like that

    Plugin Support Chrystl

    (@chrystl)

    I never see that. Could you provide a screenshot of your footer.php?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘ppl_the_languages’ is closed to new replies.