Display flags on the left header
-
Hi,
First of all I’d like to thank you for your wonderful job. Your plugin is so useful.
My theme is : Neighborhood
My website is : http://www.umbrelland.com/I have 2 options to display the flags:
1. On the left top bar
2. On the left hearder between the top bar and the menu (it’s only written “home” for the moment). THIS OPTION SEEMS TO BE THE BEST FOR ME.For the left top bar, Neighborhood allows me to add a shortcode.
For the left header, Neighborhood created a special Custom CSS area where I can add any code I want. At this stage, I added those lines below in order to remove a “welcome” text.
“#header-section .header-menu .menu li.tb-welcome {
display: none;
}
I gotta tell you. I am graiphic designer but I don’t know much about coding. Could you please help me and tell me how I can display the flags on the left header especially?Thank you so much!
-
You can place also PHP code there, right? If so then use this here:
<?php if ( function_exists( 'the_msls' ) ) the_msls(); ?>Read on here: https://wordpress.org/plugins/multisite-language-switcher/installation/
Cheers,
Dennis.Hey Dennis,
Unfortunately the php code doesn’t work on both option. It has to be a shortcode or customm css code. :((
If you need further info, please let me know!
How does this work? Do you have to insert a name of a shortcode in the options?
Here is the shortcode used for the RIGHT top bar : [social size=’small’ style=’light’ type=’facebook,googleplus,linkedin’]. I suppose the shortcode on the left top bar has to look the same. Between [ and ] I mean. (This option is available on header theme options)
About the left header area where I would prefer to display the flags (white zone on top of the word “home”. Here is what they say : Custom CSS
Quickly add some CSS to your theme by adding it to this textarea.And I already added this code #header-section .header-menu .menu li.tb-welcome {
display: none;
}
This code has been added in order to remove a texte which was displayed exactly where i wanna display my flags (left header)Obviously I also have access to all different php files of the theme
The next version is 1.0.3 almost ready. It has the shortcode [sc_msls] included. Please have a look here, if you want to test it: https://github.com/lloc/Multisite-Language-Switcher
This would solve the problem with the shortcode but I don’t know what to do with the other area where you can use just CSS but I’m sure you could also add some PHP code in the header-template right after this area.
Haaa cool. When will the version 1.0.3 be available??
It is online now. 😉 Don’t forget to rate this plugin…
Cheers,
Dennis.It works perfectly. You are the best.
Cheers,
The topic ‘Display flags on the left header’ is closed to new replies.