• Resolved Hopeidea

    (@hopeidea)


    Hi,
    Thank you so much for your work πŸ™‚ Everything is working great. I would like to put flags in the header left corner . Im newbie in WordPress, but I’m trying hard.
    I understand how the plugin works but i don’t know where exactly in header.php to put the code. I have tried so many times, but I can’t put it nowhere near the place I need.
    I like a lot how it fits there. And something like this would be so great :
    http://www.freely.de/it/
    Also I like the that little space between the flags. How is it possible to do?
    I read how you helped there : http://wordpress.org/support/topic/put-the-plug-in-outside-the-menu
    But in my themes header.php there is no such line.

    <div class=”topbar_content_right”><?php get_template_part( ‘inc/socmed’ ); ?></div>

    I’m using Nebula theme from Themeforest.

    https://wordpress.org/plugins/multisite-language-switcher/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Hopeidea

    (@hopeidea)

    Plugin Author Dennis Ploetner

    (@realloc)

    Hi,

    you have a div in your header which seems the right place if you want to place the flags in the upper left corner. Try this here:

    <div class="top_contact_info"><?php if ( function_exists( 'the_msls' ) ) the_msls(); ?></div>

    You can use css to create spaces between the flags. First check out the above code please. After that we’ll see what to do.

    Cheers,
    Dennis.

    mischa

    (@mischavitamine-ccom)

    Hi Dennis,

    I’ve installed multisite Language Switcher. Thanks for the great plugin. Everything seems to work fine. I’ve defined in the pages to which page to switch between Dutch and English but I don’t see the flags in the header

    Should I add the code below in header.php?
    <div class=”top_contact_info”><?php if ( function_exists( ‘the_msls’ ) ) the_msls(); ?></div>
    should be put in the header php?

    If so where?

    Kind regards,
    Mischa

    Plugin Author Dennis Ploetner

    (@realloc)

    Hi Mischa,

    it depends – and next time open a new topic please ;). I don’t know your theme so I can just guess but you can look in your header.php for the right place for the code

    <?php if ( function_exists( 'the_msls' ) ) the_msls(); ?>

    You can also just use the widget if your theme has a sidebar and if this could be an option. Or you can use the new add-on MslsMenu which adds the output of the switcher to a Navigation Menu.

    Cheers,
    Dennis.

    mischa

    (@mischavitamine-ccom)

    Thanks a lot Dennis! Only have to look where I can change flag to UK and get some space between the two flags but think this was dicussed earlier.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to put the plugin code in the header’ is closed to new replies.