Tagged: x
-
AuthorPosts
-
November 3, 2016 at 4:26 pm #1242922
elevatedconversionsParticipantHi, Support.
I would like to have my menu turn “hamburger” a little sooner than what it does. As soon as it hits around 1020 pixels (give or take) it will display “get in touch” on the second row and looks bad. This happens on most all iPads. I would like the menu to just collapse into the hamburger sooner instead of this happening.
Here is a screenshot of what I’m talking about: http://screencast.com/t/wpcB7G1UJ
Can you provide me with the necessary code to tweak this?
Thanks!
-Ryan
November 3, 2016 at 6:29 pm #1243026
JadeModeratorHI Ryan,
Please add this code in the customizer:
@media (max-width: 1081px) { .x-nav-wrap.desktop { display: none; } .masthead-stacked .x-btn-navbar { display: inline-block; } } @media (min-width: 1082px) { .x-nav-wrap.desktop { display: block; } .masthead-stacked .x-btn-navbar { display: none; } }Hope this helps.
November 4, 2016 at 10:29 am #1243864
elevatedconversionsParticipantThis reply has been marked as private.November 4, 2016 at 11:38 am #1243982
JoaoModeratorHy Ryan,
On what device you are experiencing the issue?
I checked your website on my FireFox Android and the menu is centered and it opens.
Please clean your cache and test again,
Thanks
Joao
November 7, 2016 at 11:30 am #1247408
elevatedconversionsParticipantHi, Joao.
I am experiencing this on tablets and desktop – testing it on the actual devices, incognito, and in browserstack.
I am using chrome and safari to test it. Both produce the hamburger menu way off to the left side and it doesn’t open at all…
Please advise the issue ASAP.
Thanks,
-Ryan
November 7, 2016 at 12:46 pm #1247507
RupokMemberHi Ryan,
Kindly update the previous code to follwoing :
@media (max-width: 1081px) { .x-nav-wrap.desktop { display: none; } .masthead-stacked .x-btn-navbar { display: block; margin: 12px auto; width: 26px; } .x-nav-wrap.mobile { display: block; } .x-nav-wrap.mobile.collapse { display: none; } } @media (min-width: 1082px) { .x-nav-wrap.desktop { display: block; } .masthead-stacked .x-btn-navbar { display: none; } }Hope this helps.
November 7, 2016 at 3:28 pm #1247700
elevatedconversionsParticipantThis reply has been marked as private.November 7, 2016 at 10:05 pm #1248113
Nabeel AModeratorHi again,
Please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery(document).ready(function($){ $('.x-btn-navbar').click(function(){ if($(".x-nav-wrap.mobile").is(':visible')){ $('.x-nav-wrap.mobile').css("display", "none"); } else{ $('.x-nav-wrap.mobile').css("display", "block"); } }); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
November 7, 2016 at 11:14 pm #1248168
elevatedconversionsParticipantThanks so much, Nabeel!
Best,
-Ryan
November 8, 2016 at 12:56 am #1248254
RupokMemberYou are welcome Ryan!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1242922 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
