Tagged: x
-
AuthorPosts
-
March 13, 2017 at 12:27 am #1404413
Dave S
ParticipantHi Christopher,
I’m trying to achieve exactly what is in the screenshots.
I put the CSS into my Customizer and literally nothing changed.
March 13, 2017 at 12:48 am #1404435Dave S
ParticipantHere is screenshots of the code pasted into my the custom CSS panel and the background color the active parent remains transparent.
March 13, 2017 at 1:05 am #1404447Christopher
ModeratorHi there,
Please see the attachment, the code works for parent pages.
You can add following code as well, to change background for active menu (whether it has children or not) :.x-navbar li.current-menu-item a { background-color: red !important; color: #000 !important; border-color: #fff !important; }
Please don’t forget to clear cache.
Hope it helps.
March 13, 2017 at 1:13 am #1404457Dave S
ParticipantThanks for trying to help, but that’s not what I’m after.
This is the screen shot I posted earlier.
I want it to look like this on click. See how the word menu turns black?
I would also like the hamburger menu to turn black on click.
March 13, 2017 at 1:29 am #1404465Rue Nel
ModeratorHello There,
Thanks for updating in! There is no on click events in our menus. The submenus were triggered upon hovering the menu item. You can make use of this code:
.x-navbar .desktop .x-nav > li.menu-item-has-children:hover > a { background-color: #000; }
And for the mobile menu, you can make use of this code:
.x-navbar .x-btn-navbar:not(.collapsed) { color: #000 !important; }
We would loved to know if this has work for you. Thank you.
March 13, 2017 at 1:44 am #1404473Dave S
ParticipantWe have much progress.
I REALLY appreciate you sticking with me through this!
#1. The desktop is correct, but is there anyway to remove the padding on the right side of the submenu items. There is a lot of extra black space.
#2. The mobile changed the color of the hamburger lines, not the background of the hamburger. I’d like the lines to stay blue and the transparent background to turn black.
Many thanks!
March 13, 2017 at 1:53 am #1404483Christopher
ModeratorHi there,
Please add following code as well :
.desktop .sub-menu { min-width: 224px; left: 0 !important; }
Update this code :
.x-navbar .x-btn-navbar:not(.collapsed) { color: #000 !important; }
to:
.x-navbar .x-btn-navbar:not(.collapsed) { background-color: #000 !important; }
Hope it helps.
March 13, 2017 at 2:05 am #1404490Dave S
ParticipantYes! This is great. Thank you VERY much!
I only have one more issue with this silly menu. The hamburger menu expands and cuts off the menu.
March 13, 2017 at 2:35 am #1404504Paul R
ModeratorHi,
May I know what browser are you using.
I can’t seem to replicate it on my end.
https://www.screencast.com/t/TgKFdAycHzI6
You can try adding this in Custom CSS in the customizer.
.x-navbar .mobile .x-nav li>a { max-width: 100%; width: 100%; }
Hope that helps.
March 13, 2017 at 2:38 am #1404508Dave S
ParticipantSafari 10.0.3
March 13, 2017 at 2:42 am #1404511Dave S
ParticipantUnfortunately the code didn’t help.
March 13, 2017 at 4:07 am #1404571Rue Nel
ModeratorHello There,
Thanks for writing in! Sorry if it didn’t work out. Please make use of this code instead:
.x-navbar .mobile { display: block; position: relative; } .x-navbar .mobile .x-nav { max-width: 100%; }
Hope this helps.
March 13, 2017 at 4:28 pm #1405490Dave S
ParticipantUnfortunately that code introduced a new bug (in screenshot attached) and didn’t solve the issue of the mobile nav corner being cut off in safari. I tested the code and removed it.
March 14, 2017 at 1:27 am #1405942Paul R
ModeratorHi Dave,
In that case, can you provide us your wordpress admin login in private reply so we can test code and update simultaneously.
Thanks
March 14, 2017 at 1:35 am #1405953Dave S
ParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1401388 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>