Tagged: x
-
AuthorPosts
-
November 22, 2016 at 12:22 pm #1267139
Sara H.Participanthello xteam
regarding this thread: https://community.theme.co/forums/topic/wpml-language-switch-top-bar/
I am everything set, changed my _topbar.php / changed my functions.php and also my style.css all in the childtheme umbrella.
It was not easy, thank you for all your support at the forum without it I couldnt do it.1. (Main Nav) My search still not working (I deactivated all the plugins and activated again)
all the next questions are regarding the Top Bar:
2. I have 2 sets of flags on the topbar, the left one should go out, but I dont how..
3. can i make bigger spacing between the socials icons and the flags on topbar? they seem a bit narrow.
4. is it possible to enlarge the flags without make them blurry?
5. When I resize the browser I can see on the small and xsmall a grey bar on the very top, I guess its from the TopBar content, Can you help me on deleting it?
6. Can I hide the menu on the topbar on S and XS sizes?
7. Can you please help me on center the flags and the social icons on smaller sizes?Thank you!
November 22, 2016 at 12:25 pm #1267150
Sara H.ParticipantThis reply has been marked as private.November 22, 2016 at 3:12 pm #1267337
Nabeel AModeratorHi there,
Thanks for writing in! Did you clear the cache after deactivating all the plugins? Please clear all cache after deactivating all the plugins and see if this resolves the searching issue.
For the rest of your queries, add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
For 2.
.x-topbar .wpml-selector { display: none !important; }For 3.
.x-social-global a:nth-child(2) { margin: 0 10px 0 20px !important; }For 4.
.x-social-global a img { width: 25px !important; }For 5.
.x-topbar .p-info { background: transparent !important; }For 6 & 7
@media screen and (max-width: 650px){ .top-menu { display: none !important; } }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
November 23, 2016 at 6:15 am #1268123
Sara H.ParticipantFor 1. – No results..
For 2. – cool!
For 3. – only increased on the flags but not in the social icons
For 4. – cool!
For 5. – making it transparent will have that padding and still will increase the size of it, is there way to “deactivate” that feature?
For 6 & 7 – awesome!thank you! awesome!
November 23, 2016 at 6:56 am #1268150
Paul RModerator1. Add this in Custom > Edit Global Javascript in the customizer.
jQuery(function($) { $('.x-btn-navbar-search').on('touchstart click', function(e) { e.preventDefault(); $('.x-searchform-overlay').toggleClass('in'); $('.x-searchform-overlay').find('.search-query').focus(); }); });3. Change code to this.
.x-social-global a { margin: 0 10px 0 20px !important; }5. Change it to this
.x-topbar .p-info { display:none }Hope that helps.
November 23, 2016 at 7:43 am #1268183
Sara H.Participantthats great!
just to understand that javascript you gave me, what was the problem? it is a bug?
Its my first javascript coding added on this theme.awesome!!!
November 23, 2016 at 8:05 am #1268203
Paul RModeratorHi,
Something is conflicting in your site which prevents the default search from working.
Though I am not sure which one as you have many plugins installed and some modification done with theme.
Adding the js code is a simple work around to have it working again.
Thanks
November 23, 2016 at 9:42 am #1268318
Sara H.ParticipantThanks Paul and Nabeel for your help!
😀
November 23, 2016 at 9:46 am #1268328
JoaoModeratorGlad to hear we managed to help,
Have a great day,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1267139 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
