Tagged: x
-
AuthorPosts
-
April 15, 2016 at 9:14 am #884329
SixITParticipantHi there,
I have a custom top bar navigation on my test site that I like for desktop, but looks messy on mobile view ports. Is there a way of making the top bar menu just go into the mobile nav dropdown when it switches to either mobile or tablet view ports?
Here’s the link to the site http://4a0.faf.myftpupload.com/
Thanks in advance!
April 15, 2016 at 10:19 pm #885197
RadModeratorHi there,
Thanks for posting in.
Sure, please add this code to Admin > Appearance > Customizer > Custom > Global Javascript.
jQuery ( function($) { if( $(window).width() < 980 ) { $('.x-topbar').prependTo('.x-nav-wrap.mobile'); } } );Thanks!
April 16, 2016 at 2:53 am #885394
SixITParticipantHi there,
Thanks for that, that worked great. However it seems to have unlinked the topbar links on mobile view ports.
Would you also be able to remove the lines above and below the topbar, or just have a small line in between them?
Also (and this isn’t crucial, so no worries if you can’t) I quite liked having just the social icons at the top of the nav bar (on mobile).
Thanks for all the help, I really appreciate it!
April 16, 2016 at 11:04 pm #886349
Rue NelModeratorHello There,
The links were behind the social icons container and that is why you can’t click on the links. To resolve this, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
@media(max-width: 979px){ .x-topbar { border: none; } .top-menu { float: none; } }Please let us know if this works out for you.
April 17, 2016 at 8:15 am #886756
SixITParticipantPerfect you guys are great!
Many Thanks!
April 17, 2016 at 5:24 pm #887187
John EzraMemberYou’re most welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-884329 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
