Tagged: x
-
AuthorPosts
-
April 15, 2016 at 6:25 am #884127
Rick WParticipantHi! My nav on mobile sizes is turning transparent when collapsed. I can’t find where it goes wrong, should be a white background. Can you help?
April 15, 2016 at 6:28 am #884135
Rick WParticipantThis reply has been marked as private.April 15, 2016 at 6:30 am #884141
Rick WParticipantThis reply has been marked as private.April 15, 2016 at 5:18 pm #884952
FriechModeratorHi There,
Thanks for writing in! You can add this under Custom > CSS in the Customizer.
@media (max-width: 979px) { .masthead .x-nav { position: relative; } }To center the menu, add this custom css
@media (min-width: 980px) {.masthead-inline .desktop .x-nav {width: 66%;}} @media (min-width: 1290px) { .masthead-inline .desktop .x-nav { margin-left: auto; margin-right: auto; width: auto; } }Hope it helps, Cheers!
April 18, 2016 at 2:59 am #887724
Rick WParticipantHi! The menu is centered now, thanks for that. But the mobile menu background is still transparent. Any thoughts on that?
April 18, 2016 at 4:47 am #887903
ChristopherModeratorHi there,
Please find following code :
.masthead .x-nav { width: 82%; position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); }And update it to :
@media (min-width:979px){ .masthead .x-nav { width: 82%; position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); } }Hope it helps.
April 18, 2016 at 7:12 am #888114
Rick WParticipantYes, that helped. Thanks a lot for the input!
April 18, 2016 at 8:14 am #888207
John EzraMemberYouβre most welcome! π
April 18, 2016 at 1:50 pm #888765
Rick WParticipantCheering to soon…
On my computer everything works perfectly on every browser and screensize, but when i visit the website on any mobile device the menu still has a transparent background. Please help.
April 19, 2016 at 1:47 am #889395
John EzraMemberHi there,
Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.x-nav-wrap.mobile.collapse.in { height: 350px; } ul#menu-main-menu-1 { margin-top: 120px; }Hope this helps β thanks!
April 19, 2016 at 3:09 am #889502
Rick WParticipantYep, that’s it! Thanks!
April 19, 2016 at 7:41 am #889924
ZeshanMemberYou’re welcome! π
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-884127 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
