• Good morning!

    Is there a way to use a custom button to select languages on my website?
    Or just that default flag/language-name at the menu?

    Thanks!

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

    (@chouby)

    Hi,

    You can use the navigation menu, the widget or you can write your own language switcher using the function pll_the_languages()

    • This reply was modified 7 years, 11 months ago by Chouby.
    Thread Starter bigao

    (@bigao)

    Thanks Chouby! I didn’t know that!

    Just clarify one more thing to me.
    If I use the pll_the_languages()… can I create a shortcode?
    I want to use it with an custom image…
    So, with a custom HTML snippet inserted with the header, can I call this shortcode within the image?

    (I don’t know if I made myself clear…. In my head it made perfect sense, hahahahha)

    Plugin Author Chouby

    (@chouby)

    pll_the_languages() is a php function which allows you to output the language switcher anywhere (instead of a menu or widget). It also gives you all information to make your own language switcher in php if you use the ‘raw’ option.

    Thread Starter bigao

    (@bigao)

    Thanks again!
    I’ll give it a try!
    ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom button’ is closed to new replies.