Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown not working #396

Open
LiamWade opened this issue Jan 10, 2025 · 2 comments
Open

Dropdown not working #396

LiamWade opened this issue Jan 10, 2025 · 2 comments

Comments

@LiamWade
Copy link

Hello,

I am using the Understrap child theme in my wordpress site, with the Understrap Parent also present.

In my menu I have sub items, but the dropdown menu doesn't seem to add the class 'show' to the ul below, when i remove all the JS files from the js folder in my custom theme, the dropdown then works?

Would anyone have an idea a to what is occurring here?

Site for reference https://dev.globalshadingday.com/

@dekkydog
Copy link

dekkydog commented Jan 10, 2025

Well your clue right there! If you remove all of your JS files and the Dropdown menu works, its highly likely that something in those JS files is interfering with it. I can say with some confidence that the Understrap parent + child themes, out of the box (without any customisation) do not produce the issue you are seeing?

I would start by incrementally commenting out individual functions within your JS files until you isolate the function that is interfering with your drop down menu. Hope that helps?

@LiamWade
Copy link
Author

Hello, Thank you for your reply, after some digging I've found that the menu seems to be using bootstrap 4, and the rest of the site is fine using bootstrap 5, i moved all the default understrap js back over and removed my custom but no dice :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants