Tagged: x
-
AuthorPosts
-
January 7, 2017 at 11:09 am #1320270
SixITParticipantHi Guys,
I’m wondering if you can help me with two things I’m stuck on.
1. I’ve got a “Buy Tickets” button in my nav bar which looks great (here is my site http://0f4.901.myftpupload.com/). However when the viewport resizes for mobile this button obviously gets moved to the bottom of the navigation dropdown. Would it be possible to have this button next to the mobile navbar button when viewports are resized for tablets and mobile (please see first attached screenshot).
2. I have a custom topbar and topbar menu, and when viewports are resized for mobiles and tablets the topbar menu gets moved into the mobile dropdown menu (which is what I want). However there are lines above and below each menu item, so it can be hard to see where one menu item starts and the other ends. I’m wondering if there’s a way of removing the top and bottom lines and increasing the margin in between each topbar menu item (please see second attached screenshot).
Thanks in advance for any help you can provide!
January 7, 2017 at 9:54 pm #1320727
Rue NelModeratorHello There,
Thanks for writing in! To resolve your issue, please follow these steps:
1] Please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript(function($){ $('document').ready(function(){ var button = $('.x-nav-wrap.mobile .menu-item-12057 span button'); $('.x-nav-wrap.mobile .menu-item-12057').css('display', 'none'); button.addClass('buy-tickets').insertAfter( $('.x-btn-navbar') ); }); })(jQuery);2] And then please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.x-navbar .buy-tickets { float: right; margin-top: 35px !important; } @media(min-width: 980px){ .x-navbar .buy-tickets { display: none; } }We would loved to know if this has work for you.
If you need anything else we can help you with, please let us know.January 8, 2017 at 3:12 am #1320891
SixITParticipantThat’s worked perfectly visually, however it seems to have lost it’s functionality on mobile devices. I click it and nothing happens (doesn’t link anywhere). Is there a way to resolve this? Many thanks in advance!
January 8, 2017 at 3:38 am #1320906
Rue NelModeratorHello Again,
Thanks for updating in! To preserve the link, have the JS code updated and make use of this code instead:
(function($){ $('document').ready(function(){ var button = $('.x-nav-wrap.mobile .menu-item-12057 span button').wrap(' <a class="my-buy-tickets-link" href="http://0f4.901.myftpupload.com/plan-your-visit/booking/"></a>'); $('.x-nav-wrap.mobile .menu-item-12057').css('display', 'none'); button.addClass('buy-tickets').insertAfter( $('.x-btn-navbar') ); }); })(jQuery);We would loved to know if this has work for you. Thank you.
January 8, 2017 at 3:45 am #1320908
SixITParticipantHi Rue, thanks for the reply. It’s still not linking for some reason. Is there another way to resolve it? Many thanks!
January 8, 2017 at 3:54 am #1320914
Rue NelModeratorHello There,
Please update it again and use this:
(function($){ $('document').ready(function(){ var button = $('.x-nav-wrap.mobile .menu-item-12057 span button') $('.x-nav-wrap.mobile .menu-item-12057').css('display', 'none'); button.addClass('buy-tickets').insertAfter( $('.x-btn-navbar') ); $('.buy-tickets').wrap('<a class="my-buy-tickets-link" href="http://0f4.901.myftpupload.com/plan-your-visit/booking/"></a>'); }); })(jQuery);Hope this helps.
January 8, 2017 at 4:01 am #1320916
SixITParticipantThank you so much, that’s worked perfectly! ๐
January 8, 2017 at 4:04 am #1320918
Rue NelModeratorHello There,
Youโre welcome! We’re happy to help you out.
If you need anything else we can help you with, don’t hesitate to open another thread.Best Regards.
January 8, 2017 at 11:57 am #1321233
SixITParticipantThanks again! ๐
January 8, 2017 at 6:33 pm #1321563
Rue NelModeratorNo Problem.
If you need anything else we can help you with, please let us know. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1320270 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
