Closed Correct-Syntax closed 3 years ago
Hello there. This repository strictly follows the code/classes/structure of the official Bootstrap 5 release only. I will consider creating a megamenu version of it but it will be a completely new and different repository. By the way, that mega sub menu code is not really good in my opinion. I already found a bug: try to shrink the page from desktop to mobile and you will see that the submenu doesn't work anymore. Also, some javascript conditions are based on the window width integer and that is not a good practice because it's not cross-browser compatible.
This repository strictly follows the code/classes/structure of the official Bootstrap 5 release only.
Yes, that makes sense to do so.
I will consider creating a megamenu version of it but it will be a completely new and different repository.
That would be nice. The official bootstrap themes have mega-menus, so it's a bit surprising that they aren't included in bootstrap. Then again, this is the first time I have even considered using a mega-menu for a project -as other solutions tend to be better... ;)
By the way, that mega sub menu code is not really good in my opinion. I already found a bug: try to shrink the page from desktop to mobile and you will see that the submenu doesn't work anymore. Also, some javascript conditions are based on the window width integer and that is not a good practice because it's not cross-browser compatible.
Yes, I noticed that and wasn't planning to use that code (it's bootstrap 4 anyway) but I did want to show an example of what I was trying to achieve.
Thanks!
I will consider creating a megamenu version of it but it will be a completely new and different repository.
That would be nice. The official bootstrap themes have mega-menus, so it's a bit surprising that they aren't included in bootstrap. Then again, this is the first time I have even considered using a mega-menu for a project -as other solutions tend to be better... ;)
Can you send me the link to an official bootstrap theme with a mega-menu? I'll take a look.
Can you send me the link to an official bootstrap theme with a mega-menu? I'll take a look.
Sure. :)
https://themes.getbootstrap.com/product/front-multipurpose-responsive-template/ would be one. Also https://themes.getbootstrap.com/product/space-multipurpose-responsive-template/ which has a different megamenu layout.
Hi, I was wondering if this nav-walker has support for sub-dropdowns and customized stuff like megamenu support?
I would like to accomplish something similar to: from https://bootstrap-menu.com/demos/megasubmenu.html
But I have only been able to get the single dropdown to work correctly. Specifically, when (in the wp customizer), a sub-link is added (see screenshot), the menu item disappears altogether.
This is the code I am using (in a custom wordpress theme):
Sorry if I've overlooked something... and thanks for your time. :)