Support » Plugin: Blox Lite - Content Blocks for Genesis » Polylang PHP short-code in Blox not working

  • Resolved ws24

    (@ws24)


    Hi,

    I’m trying to add a Polylang (multilanguage plugin) shortcode (php) to blox so the language-switcher will be displayed.
    First I checked the option: Check to enable PHP code.

    And then I pasted this Polylang code in the Raw content field:
    <?php pll_the_languages( array( ‘show_flags’ => 1,’show_names’ => 0 ) ); ?>

    Source for code: https://polylang.pro/doc/function-reference/#pll_the_languages

    The problem is: the flags are displayed but they don’t function (not clickable).
    Thanks!

    • This topic was modified 4 years, 10 months ago by ws24.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi ws24,

    I am not familiar with this plugin, but there are a couple of things we can try. Can you provide me with a link to where the flags are showing but not functioning? Also have you tried adding the code elsewhere on your site, perhaps through a theme template to ensure they work as expected? That will allow me to start diagnosing.

    Thanks,
    Nick

    Thread Starter ws24

    (@ws24)

    Hi Nick,

    Thank you for your quick answer.
    The problem was apparantly caused by me, because after I disabled the custom css that I added to the blox block it works fine.
    Sorry for wasting your time and thank you for Blox!
    Regards,
    Petri

    Thread Starter ws24

    (@ws24)

    This topic can be marked as resolved, thanks.

    Plugin Author Nick Diego

    (@ndiego)

    Great, thanks Petri!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Polylang PHP short-code in Blox not working’ is closed to new replies.