mqtranslate – put language switcher in header
-
Hi,
I am trying to put the language switcher in my header. I use a one-page-template with no widget area.
The URL is test.steffi-woessner.de (will be moved to steffi-woessner.de)
There were two positions I could imagine the switcher to be:
1. underneath the social icons, centered
2. in the sticky menu showing up when you scroll down, floating rightUnfortunately I know only little CSS.
I managed to put the switcher (only inactive languages) in the header by trial and error:
</div> <!– end social –>
<?php echo qtrans_generateLanguageSelectCode(‘image’); ?>
</div> <!– end title –>and in the css sheet
ul.qtrans_language_chooser > .active {
display:none;
}However, I have no clue how to center the icons and put them horizontally in one line.
I tried entering this in my css sheet but that puts them to the left and one under the other
.qts-lang-menu { list-style-type:none; float:right }
.qts-lang-menu li {
display: inline;
}Can someone help me style them correctly?
I will then replace the ugly little flags with different images, bigger ones, too.
Second question for that: I have a custom CSS field in my theme settings. Would putting the CSS info there prevent the changes from getting lost once I update?
Third question: any idea how to put the flags on the right of my sticky nav2 menu??
Thank you so much!
- The topic ‘mqtranslate – put language switcher in header’ is closed to new replies.