Tagged: x
-
AuthorPosts
-
September 30, 2016 at 7:22 am #1197201
MatthewChiversParticipantI’m very confused.
I want to change the width at which the standard menu changes to the hamburger / mobile button menu.
I have tried various methods suggested both here on the forum and over at the X Theme Group on Facebook. None of them are working correctly.
Really hoping someone can help.
September 30, 2016 at 10:17 am #1197391
RahulModeratorHey There,
Thanks for writing in!
To assist you with this issue, weβll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
September 30, 2016 at 10:45 am #1197439
MatthewChiversParticipantOkay Awesome! It’s https://matthewchivers.co.uk/
I’ve tried a number of @media solutions.
Some have simply done nothing, others have had undesirable consequences.(All my attempts have now been deleted and “customise” is clean except for the css I’ve applied to other things).
September 30, 2016 at 12:56 pm #1197600
JoaoModeratorHi There,
Please add the following code to Appereance > customizer > custom > CSS and adjust according to your needs.
@media (max-width: 1017px) { a.x-btn-navbar { display: inline-block; float: right; } .x-nav-wrap.mobile.collapse.in { display: block; } .x-nav-wrap.desktop { display: none; } }Hope that helps
Joao
October 1, 2016 at 7:29 am #1198426
MatthewChiversParticipantHey there.
Thanks for the response but this hasn’t worked. π
The menu is currently set to only become a mobile button at 200px wide. As you’ll be able to see, this isn’t happening.
Customizer saved and cache cleared.
Hope we can find a solution? π
Matthew
October 1, 2016 at 8:17 am #1198464
ThaiModeratorHi Matthew,
Please try with this CSS instead:
@media (max-width: 1024px){ a.x-btn-navbar { display: block; margin-left: auto; margin-right: auto; max-width: 42.16px; } .x-nav-wrap.desktop { display: none; } .x-nav-wrap.mobile.collapse.in { display: block; } }Hope it helps π
October 2, 2016 at 11:39 am #1199421
MatthewChiversParticipantOkay, I just tried that code and still nothing. Customizer saved and cache cleared.
The exact code I used:
@media (max-width: 100px){ a.x-btn-navbar { display: block; margin-left: auto; margin-right: auto; max-width: 42.16px; } .x-nav-wrap.desktop { display: none; } .x-nav-wrap.mobile.collapse.in { display: block; } }Changed the max width example from your 1024 to my 100 (put it so low just to prove that no matter how low it’s set it won’t change).
π Sad Times
October 2, 2016 at 12:16 pm #1199460
ThaiModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
β Link login to your site
β WordPress Admin username / passwordDonβt forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
October 2, 2016 at 12:56 pm #1199501
MatthewChiversParticipantThis reply has been marked as private.October 2, 2016 at 7:16 pm #1199740
RadModeratorHi there,
It’s the reverse, please try this
@media (min-width: 100px){ a.x-btn-navbar { display: none; } .x-nav-wrap.desktop { display: block; } .x-nav-wrap.mobile { display: none; } }That’s because mobile menu starts at 979px and max-width with the smaller size than 979px will just be the same. Hence to counter it, use min-width.
Cheers!
October 3, 2016 at 10:10 am #1200575
MatthewChiversParticipantThis is the closest it’s been to working! But the mobile menu is showing as well as the regular one now. Tried with old code in place, without it, and with !important in a couple of places.
Thanks for the help so far! π
October 3, 2016 at 11:18 am #1200645
JoaoModeratorHi There,
Please add the following code(just the code below) and it will work for sure:
@media (min-width: 100px) { .x-btn-navbar, .x-btn-navbar.collapsed { display: none !important; } .x-nav-wrap.desktop { display: block; } .x-nav-wrap.mobile { display: none !important; } }Hope it helps
October 3, 2016 at 11:23 am #1200655
MatthewChiversParticipantYES!!! WE GOT THERE!
Thank you very much. Really appreciate the help πOctober 3, 2016 at 11:34 am #1200667
ThaiModeratorGlad we’re able to help π
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1197201 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
