I have sat now for prob 2 days trying to study to see why it doesnt work. I have at the moment this as one page, all includes into the page so not includes, i have tried using the theme original main.js and style.css file, but it never works, yet, the theme works great on its own (ie downloaded, unpacked and opened), their nav remains open, active css class on the dropdown and child. But i cannot get it to work in wappler, i get no errors, but it must be maybe the NiceAdmin Bootstrap Template Demo or something conflicting
sorry to ask on here, but would love to get this working to move the wappler project forward, its a nice clean theme thats not overloaded with tonnes of js etc, so the theme might appeal to others as well.
you might get the odd error as i removed the security on the page but it will fail trying to run the Sc, but that doesnt affect the nav links.
just cannot for the life of me work out why it wont work, side by side the theme and my aside code are the same
This has nothing to do with the standard Bootstrap 5 code for navs or navbar. The script marking a link as active expects standard Bootstrap 5 navigation code.
If you are willing to use such a custom structure, you'd better look into setting the .active class (or whatever class your template uses) using dynamic attributes by checking if the current url matches your link href.
BTW using such custom templates if you are not really experienced developer or not familiar with Bootstrap 5, can cause more troubles than just building the layout by your own.
yeah, its pretty custom, although they sell its as bs5.3, and it does seem to be bs5.3, but its not standard navbar, i have the top bar working lovely, just cant figure out how they are setting the sidenav active, the classes are in the style but the only js file they use beyonf the bs js files is main.js and I am using the same file as they are, theres works lovely in the browser but not mine, so guess its the wappler bs js file or something being different (even though taking a look at file sizes of theirs and the wappler one they are the same.
oh well, maybe keep my top nav and try to build a new sidebar inplace of the sidebar they have, i did try to build before getting this one, but never quite find the right tutorials or resources etc, this one works lovely in terms of being responsive and nice toggle action etc. but guess if cant get it to work i have no choice but to try to rebuild the part i cant get working.