WordPress.org

Forums

MultilingualPress
[resolved] Duplicate language switcher (3 posts)

  1. leogg
    Member
    Posted 2 years ago #

    Hi,

    I have a site with the MLP plugin enabled and the language switcher appears twice. See screenshot:

    The code I added in header.php is:

    <?php echo mlp_show_linked_elements( array( 'link_text' => 'text', 'show_current_blog' => TRUE ) ); ?>

    Regards,

    https://wordpress.org/plugins/multilingual-press/

  2. toscho
    WCEU 2016 Contributor
    Plugin Author

    Posted 2 years ago #

    Take the echo away, the function does that automatically already, and it returns the string. This is why it is printed twice. :)

  3. leogg
    Member
    Posted 2 years ago #

    Thank you, toscho! That did the trick! ;)
    BTW, congrats on a great plugin!

    Cheers,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MultilingualPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic