Adding mqtranslate button in header
-
Hello there!
I am using the mqTranslate plugin to translate my website. I was able to insert the plugin at the top right hand of the page, but when I scroll down, it stays fixed there. Even if I played with the CSS to move it where I want, it seems to be linked to the browser window, and not the site content. You can visite the site to see what I mean:
https://www.lacoachdesfinances.com/en/
I am using the Interface Pro theme by ThemeHorse. I wrote on their support forum as well. To get what you see now, this is what I placed in my functions.php:
add_action('get_header', 'add_my_language_chooser'); function add_my_language_chooser() { if (function_exists('qtrans_generateLanguageSelectCode')) qtrans_generateLanguageSelectCode('text'); }
This is my CSS:
ul.qtrans_language_chooser { background-color: #7cbc2d; box-shadow: 2px 5px 7px rgba(0,0,0,.21); border-radius: 6px; border: 1px rgba(255,255,255,.5)solid; list-style-type:none; position: fixed; top: 35px; right: 0px; padding: 7px 11px 7px 11px; -webkit-transition: background-color linear 200ms; transition: background-color linear 200ms; z-index: 201; } ul.qtrans_language_chooser:hover { background-color: rgba(153,204,255,.65); box-shadow: 3px 8px 10px rgba(0,0,0,.15); } ul.qtrans_language_chooser li.active { display: none; } ul.qtrans_language_chooser li a { height: 40px; width: 40px; color: white; font-size: 17px; }
I think that the problem is with my theme, the header.php goes and fetches a header-extensions.php file elsewhere. Since I would like my button to be in the Purple area, I think it should be in the area called <;div class=”hgroup-wrap”;>, which is only found in the header-extensions.php Is there a way to make this modification in a Child theme? Thank you very much for your help.
- The topic ‘Adding mqtranslate button in header’ is closed to new replies.