Home › Forums › WoodMart support forum › MegaMenu fullwidth + elementor tabs widget
MegaMenu fullwidth + elementor tabs widget
- This topic has 7 replies, 2 voices, and was last updated 4 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
April 8, 2021 at 11:31 am #280117
agent3wParticipantHello,
I’m trying to use elementor tab widget in HTML block used for Mega Menu full-width.
The issue :
When megamenu is displayed, if I click on tab inside to change content, the megamenu disappears.How to reproduce :
– create HTML block element containing “Elementor TABS widget” (https://elementor.com/help/tabs-widget/)
– create menu, select one element to be fullwidth menu and select HTML block created containing TABS widget
– go on front end : show mega menu and try to change tab.Following events in browser console AND looking at your JS scripts, it seems that it could be caused by “resize” event (search “wd-offsets-calculated”). Contents contained in each tab of elementor widget have different sizes : so each tab change resizes the megamenu wrapper.
Thanks for your help.
Best regards.
JoffreyApril 8, 2021 at 11:49 am #280134
Artem TemosKeymasterHello,
Try to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.
.wd-nav-main:not(.wd-offsets-calculated) .wd-event-hover:hover>.wd-dropdown, .wd-nav-main:not(.wd-offsets-calculated) .wd-event-click.wd-opened>.wd-dropdown, .wd-nav-main:not(.wd-offsets-calculated) .wd-dropdown.wd-opened, .wd-nav-secondary:not(.wd-offsets-calculated) .wd-event-hover:hover>.wd-dropdown, .wd-nav-secondary:not(.wd-offsets-calculated) .wd-event-click.wd-opened>.wd-dropdown, .wd-nav-secondary:not(.wd-offsets-calculated) .wd-dropdown.wd-opened { opacity: 1; visibility: visible; }
Kind Regards
April 8, 2021 at 12:12 pm #280153
agent3wParticipantThank you.
We are close to solved it 🙂
Rule : “pointer-events: unset;” is necessary. Without this, after first tab change, we can’t access anymore to the megamemu even it is visible.
.wd-nav-main:not(.wd-offsets-calculated) .wd-event-hover:hover>.wd-dropdown, .wd-nav-main:not(.wd-offsets-calculated) .wd-event-click.wd-opened>.wd-dropdown, .wd-nav-main:not(.wd-offsets-calculated) .wd-dropdown.wd-opened, .wd-nav-secondary:not(.wd-offsets-calculated) .wd-event-hover:hover>.wd-dropdown, .wd-nav-secondary:not(.wd-offsets-calculated) .wd-event-click.wd-opened>.wd-dropdown, .wd-nav-secondary:not(.wd-offsets-calculated) .wd-dropdown.wd-opened { opacity: 1; visibility: visible; pointer-events: unset; // added }
But to solved the issue, we will need JS I think. When tab change, one style rule managed by JS gone and the layout break.
This element : “div.wd-dropdown-menu.wd-dropdown.wd-design-full-width” is trigged by JS that add/remove style “left:” with a calculated value.
When you move the mouse on megamenu, this value is recaluled. When You click on tab change, this value is removed.
Thanks for your help.
Best regards.
JoffreyApril 9, 2021 at 6:12 am #280437
Artem TemosKeymasterPlease, send us your admin access so we can try to fix this on your website.
April 9, 2021 at 6:54 am #280478
agent3wParticipantHi,
ok thanks for your help.
Please do not make change or disable plugin, and send me the code I need to add t fix this 🙂
Thanks a lot for your help.
Best regards.
JoffreyApril 9, 2021 at 10:58 am #280688
Artem TemosKeymasterHello,
We have fixed this issue in our latest 6.0.2 release. You will need to add the following code snippet to the functions.php file in the child theme as well
add_filter( 'woodmart_clear_menu_offsets_on_resize', '__return_false' );
Kind Regards
April 9, 2021 at 11:20 am #280718
agent3wParticipantHello,
you are amazing !!
Thank you a lot 😀
Have a nice day.
Best regards.
JoffreyApril 9, 2021 at 11:20 am #280719
Artem TemosKeymasterThank you! Have a great weekend 🙂
-
AuthorPosts
The topic ‘MegaMenu fullwidth + elementor tabs widget’ is closed to new replies.
- You must be logged in to create new topics. Login / Register