Tagged: x
-
AuthorPosts
-
January 4, 2017 at 4:30 am #1315501
XcitingWebParticipantHello,
I am finishing this website currently but ran into a problem (see attachments). The logo moves over the navbar on certain laptop-sized screen resolutions, causing the navbar to look all sloppy.Is there a way to fix this?
(Shouldn’t the navbar resize dynamically, the logo resize or the header layout change from inline to stacked in certain screen sizes?)
I’d like it best if the logo would get smaller.
Thank you for your help!
January 4, 2017 at 4:31 am #1315505
XcitingWebParticipantThis reply has been marked as private.January 4, 2017 at 5:44 am #1315616
Paul RModeratorHi,
To fix it, you can add this under Custom > Edit Global CSS in the Customizer.
@media (max-width: 1490px) { body .x-nav-wrap.desktop { display:none; } body .x-nav-wrap.mobile { display:block; } body .x-nav-wrap.mobile.collapse { display:none; } body .x-nav-wrap.mobile.collapse.in { display:block !important; } body .x-btn-navbar { display: block; float: right; } }Hope that helps
January 4, 2017 at 12:04 pm #1316140
XcitingWebParticipantHi!
Thank you. Now the mobile menu shows up on mobile pages. Is a possible solution, but resizing the logo or nav would be better, wouldn’t it? (ui and ux wise)January 4, 2017 at 3:09 pm #1316384
FriechModeratorHi There,
Yes, you can add this custom css instead.
@media (min-width: 980px) and (max-width: 1468px) { .x-navbar .desktop .x-nav > li > a { font-size: 12px; } .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) { padding-left: 10px; padding-right: 10px; } .x-brand { width: 18%; margin-top: 30px; } }But the logo and navbar would become too small though.
Thanks.
January 5, 2017 at 1:36 am #1316997
XcitingWebParticipantGreat! I used both and was able to increase the font size that way to make everything readable. Here’s the code:
@media (min-width: 1235px) and (max-width: 1501px) { .x-navbar .desktop .x-nav > li > a { font-size: 15px; } .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) { padding-left: 10px; padding-right: 10px; } .x-brand { width: 20%; margin-top: 18px; } } @media (max-width: 1234px) { body .x-nav-wrap.desktop { display:none; } body .x-nav-wrap.mobile { display:block; } body .x-nav-wrap.mobile.collapse { display:none; } body .x-nav-wrap.mobile.collapse.in { display:block !important; } body .x-btn-navbar { display: block; float: right; } }Thank you so much, this is solved!
January 5, 2017 at 3:12 am #1317064
FriechModeratorCool, we’re delighted to assist you with this.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1315501 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
