Roots Discourse

Sage 10 Child theme - Bootstrap 5 scripts are called twice. Now nav toggles doesn't work

Hey all,

Today I’ve installed BS5 to my theme and child theme. But now I notice my navbar toggles opens but cannot close the navbar. The .show class is not beeing removed. Alright, so I’ve got a feeling this is because might be called twice. It’s loaded in both themes. (right?)

When I activate the parent theme it works fine. When I activate the child theme it breaks. Now, I’ve tried removing BS5 from the child theme’s package.json and the child theme assets. But then it doesn’t even open.

How to handle this correctly?