Tagged: x
-
AuthorPosts
-
January 12, 2017 at 10:15 pm #1328252
btdtboutiqueParticipantHey guys,
I love your work and all your support on the forums.
I have a quick question. I’m trying to change the colour of the fixed dropdown menu on mobile while the top navbar remains transparent.
So far I’ve used the following from another forum thread to make the navbar transparent, which worked really well.
@media (max-width: 979px) {
body .x-navbar {
margin-bottom: -91px;
background-color: transparent;
border: none;
box-shadow: none !important;
}However, now the dropdown menus items are also transparent. Is there any way to change the background of the navbar to white after the menu icon has been pressed?
January 13, 2017 at 12:18 am #1328363
LelyModeratorHello There,
Please update above CSS to this:
@media (max-width: 979px) { body .x-navbar { margin-bottom: -91px; background-color: #ffffff; border: none; box-shadow: none !important; }Hope this helps.
January 16, 2017 at 12:48 am #1331547
btdtboutiqueParticipantThis reply has been marked as private.January 16, 2017 at 1:45 am #1331609
RupokMemberHi there,
Thanks for writing back. Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.
January 16, 2017 at 6:09 pm #1332746
btdtboutiqueParticipantOkay…
I had been searching the forums and found many similar questions answered on there so didn’t think it was outside the scope of support.
re.
https://community.theme.co/forums/topic/navbar-clear-to-background-as-you-scroll/
…
January 16, 2017 at 6:11 pm #1332747
btdtboutiqueParticipantCould you possibly let me know if this is the case, or whether I didn’t ask the question properly.
With regards,
Bernard
January 17, 2017 at 1:10 am #1333130
FriechModeratorHi Bernard,
Sorry, but I am not entirely certain or your question. You mean, you want the mobile menu items with solid white background, but keep the navigation bar semi-transparent. If so, please add this on your custom CSS:
@media (max-width: 979px) { .x-nav-wrap.mobile.collapse.in { background-color: #fff; } }If not, please clarify.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1328252 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
