• Resolved darren196700

    (@darren196700)


    I am trying to incorporate falang into the header of a block based wp page. So far I’ve always used classic themes and therefore the falang widget. However, when I now insert falang as a shortcode (e.g. using [falangsw display_name=”0″ display_flags=”1″]) using the shortcode block it is simply displayed on the top of the page and not where I placed it in the header structure. I’m not sure if this is a bug or if I’m doing something wrong.

    Now I have to use some outdated plugin that allows to display legacy widgets on block themes which is of course not a desirable workaround.

    Would be great if someone can help out!

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author sbouey

    (@sbouey)

    Can you change the shortcode with echo=”0″

    like this [falangsw display_name=”0″ display_flags=”1″ echo=”0″ ]

    it’s not documented , i will add it but it’s seem there is a problem in the code , by default it’s not an echo, i will check for the next release

    Thread Starter darren196700

    (@darren196700)

    Hi Stéphane

    Thanks so much for taking the time.

    I’ve tried your new shortcode, however without luck. I can do [falangsw echo=”0″], then it displays in the correct position. However, as soon as I add the display_name=”0″ option, the whole language switcher disappears. and the display_flags option seems to be ignored. So this is the behavior:

    [falangsw echo=”0″ ] -> displayed in the correct position

    [falangsw display_name=”0″ echo=”0″ ] -> invisible

    [falangsw display_name=”1″ display_flags=”1″ echo=”0″ ] -> displayed in the right position, however with languages as words and *no* flags.

    [falangsw display_name=”0″ display_flags=”1″ echo=”0″ ] -> invisible

    Hope this helps!

    Cheers

    Plugin Author sbouey

    (@sbouey)

    Thanks i will check, the code has already changed a little in the next release

    I put the thread as resolved , the first part is resolved.

    Thread Starter darren196700

    (@darren196700)

    Perfect, thanks! I actually have another issue with not being able to translate the menu . Should I create another topic here? Or are there already fixed bugs on that?

    Plugin Author sbouey

    (@sbouey)

    create another topic if it’s another problem , it’s easier to find a solution for other users.

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

The topic ‘Short code ignores placement’ is closed to new replies.