I have developed a WordPress site with Bootstrap 5. It’s obviously still a work inprogress but I ran it through Lighthouse in Google devtools. I needed to change the viewport. Once I figured out how to do that and changed that line of code, the site on the mobile devices now shows a hamburger menu. I’m ok with that, but the problem is that the hamburger menu will not open on the mobile site.
Google pretty much mainly pointed to and jQuery not registering or a mixture of bootstrap classes of 4 and 5. I really function on my website and it said that jQuery is enqueued properly. Also my classes I double checked and I think that they are all version 5.
I do not know if this is the actual problem but I noticed something today that my navwalker array is not registering. I did this with the wp_die function. And the output was array(0).
So perhaps I am getting somewhere in my troubleshooting but I think that this is the start of something. I have registered my array in my functions.php file. I will attach a link with my functions.php code.
Can somebody please tell me what I did wrong? Thank you in advance.
[ad_2]