-
AuthorPosts
-
February 20, 2020 at 5:13 pm #1186416
Hi,
I believe there is a small bug regarding the navigation menu lay-out when a menu is included via a Widget.
When including a navigation menu with 2 levels (so also sub pages are included) only the sub menu items of the current active menu item are indented. Any sub menu items of other pages do not have indentation.
The indentation of the submenu is defined in /enfold/css/avia-snippet-widget.css line 91 -97:
#top .widget_nav_menu .current-menu-item > ul, #top .widget_nav_menu .current_page_item > ul, #top .widget_nav_menu .current_page_ancestor > ul, #top .widget_nav_menu .current-menu-ancestor > ul { display:block; padding:0 0 0 13px; }
I believe
.menu-item-has-children
should be included to indent all sub menus:#top .widget_nav_menu .menu-item-has-children > ul, #top .widget_nav_menu .current-menu-item > ul, #top .widget_nav_menu .current_page_item > ul, #top .widget_nav_menu .current_page_ancestor > ul, #top .widget_nav_menu .current-menu-ancestor > ul { display:block; padding:0 0 0 13px; }
Best regards,
EmazingFebruary 25, 2020 at 3:22 am #1187523Hey Joris,
Thank you for the info.
We’ll report the issue to our channel. Could you provide a link to the page showing the issue? We would like to check it further.
Best regards,
IsmaelFebruary 25, 2020 at 11:58 am #1187654Hi Ismael,
Thanks for your reply.
I’ve created a few pages at our own site to show the issue: https://emazing.nl/chapter-1/
I’ve created a navigation menu and added it to a widget area via the ALB to all pages. I’ve also included the navigation menu via the sidebar. Both menus show the same lack of indentation with the submenu when viewing a page which is not part of the current chapter.
I don’t think it’s really important because the fix is quite ease and also because I hardly ever see a (Enfold) website with this kind of navigation. I ran into this because a client of ours uses a navigation menu in this manner.
Best regards,
JorisFebruary 27, 2020 at 9:41 am #1188349Hi,
The child ul or items are supposed to be indented, so this is a valid issue. We have already reported the thread to our channel, so the fix should be included in the next patch.
Thank you for the update.
Best regards,
IsmaelFebruary 27, 2020 at 12:44 pm #1188430Hi Ismael,
Great! Topic closed.
Joris
-
AuthorPosts
- The topic ‘Small bug in navigation menu lay-out when included via widget’ is closed to new replies.