Tagged: x
-
AuthorPosts
-
August 16, 2016 at 11:48 am #1133823
zero2fearoParticipantHi guys- I understand that this topic has been covered before but I have a few questions…
I found what I believed to be the needed css for this operation in the forum but It does seem to act a bit odd. I have noticed a white outline around the menu, maybe 1px, and my nav-links seem move position when scrolling. Another thing I have noticed is that my sub-menus now open above the nav links.
Also, is there a way to slow down the transition for transparent to solid when scrolling? In this case white. FYI: I have smooth scroll installed currently, but have not found where to edit it’s settings.
I will follow up with login info…
Thx
August 16, 2016 at 12:01 pm #1133846
zero2fearoParticipantThis reply has been marked as private.August 16, 2016 at 1:44 pm #1134011
RupokMemberHi there,
Thanks for writing in! I’ll try to cover your questions separately as you have multiple concerns.
#1. I can’t see any white outline. Let’s add a screenshot poiting that.
#2. It changes position because you have added some custom CSS which causing this. Like you have added the bwlo code :
.x-navbar.x-navbar-fixed-top .x-nav > li > a { padding-top: 30px !important; }You can update this to below :
.x-navbar .x-nav > li > a { padding-top: 30px !important; }#3. It opens above because you have added the below code :
.x-navbar .desktop .x-nav > li ul { top: -15px; }I am not really sure why you added this but change this to get expected result. Maybe 15px instead of -15px.
#4. You can add some transition to make it nice :
.x-navbar { transition: all 0.3s ease 0s; }Hope this helps.
August 17, 2016 at 2:06 pm #1135600
zero2fearoParticipantThank you very much for the help. I believe I have most of this corrected and working well. I do still see the faint outline of the header. Screen cap attached.
August 17, 2016 at 2:13 pm #1135611
zero2fearoParticipant.
August 17, 2016 at 3:27 pm #1135719
JoaoModeratorHi There,
Please add the following code to Appereance Customizer Custom CSS
.x-navbar { border-bottom: none; box-shadow: none; }Hope it helps
Joao
August 17, 2016 at 5:16 pm #1135874
zero2fearoParticipantThank you Joao- That worked perfectly. One more question about this: How do I keep the menu for staying transparent on mobile?
August 18, 2016 at 12:15 am #1136279
RupokMemberHi there,
You can try this code :
@media only screen and (max-width: 979px) { .x-navbar, .x-navbar.x-navbar-fixed-top { background-color: transparent; } }Note that it will show the body background. If you want the image behind that; use this instead :
@media only screen and (max-width: 979px) { .x-navbar, .x-navbar.x-navbar-fixed-top { background-color: transparent; position: absolute; } }Thanks!
August 18, 2016 at 3:28 pm #1137449
zero2fearoParticipantThank you Rupok! That first snippet is very close to what I am looking for. Thing only thing I noticed on mobile is that the menu returns to transparent once scrolling has started. Any thoughts or suggestions?
August 18, 2016 at 7:40 pm #1137637
Rue NelModeratorHello There,
Thanks for the updates! To resolve this issue on mobile, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
@media(max-width: 979px){ .x-navbar.x-navbar-fixed-top { background-color: white; height: auto; } }Hope this helps.
August 19, 2016 at 9:49 am #1138355
zero2fearoParticipantThx Rue Nel! That did the trick. Please feel free to close thread.
August 19, 2016 at 12:10 pm #1138478
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1133823 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
