Tagged: x
-
AuthorPosts
-
October 26, 2016 at 4:14 am #1231142
shadowoflightParticipantHey
I’m trying to add translation flags into the top bar.
I’ve followed instructions here: https://community.theme.co/forums/topic/google-translate-flags-in-topbar-or-menubar/
1. Despite having the latest xtheme, I also had to create the _topbar.php file instead for it to work. Adding the code into the child’s function.php didn’t work. It that supposed to be the case?
2. How can I get the flags to align with the other icons in the top bar? I tried adding the ‘inline’ code from the above post into the css customiser but that didn’t seem to work. My url – http://bit.ly/2eQ5WaD
3. For mobile, the social icons in the top bar is spread our nicely. Once aligned, will it also appear in a line with the social media icons in mobile?
Thanks!
October 26, 2016 at 4:47 am #1231185
ThaiModeratorHi There,
Please add the following CSS under Customizer > Custom > Global CSS:
.gtranslate { margin-top: 12px; } @media (max-width: 979px){ .gtranslate { float: none !important; margin: 0 auto; display: block; } #flags { float: none; width: 100%; text-align: center; } #flags ul { float: none !important; } #flags li { float: none !important; display: inline-block; } }http://i.imgur.com/oUaT6Ag.png
http://i.imgur.com/gGoc2uo.png
Hope it helps 🙂
October 27, 2016 at 12:58 am #1232687
shadowoflightParticipantYeap it works thanks!
Just 1 more thing – is there a way for me to adjust the space between the flags?
Also, I’m assuming my child theme setup is correct?
October 27, 2016 at 1:15 am #1232697
FriechModeratorHi There,
Yes, your child theme seems fine.
To adjust the space between the flags, you can add this under Custom > CSS in the Customizer.
.x-topbar #flags ul li { margin-right: 7px !important; }Feel free to adjust the value.
Cheers!
November 3, 2016 at 2:22 am #1242014
shadowoflightParticipantwee working, thanks!
November 3, 2016 at 2:26 am #1242016
FriechModeratorWe’re delighted to assist you with this.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1231142 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
