javascript - Bootstrap 4 navbar-toggler button doesn't work when located at specific sites

one text

Solution:

My project is divided in multiple files. I am using "header" and "footer" files for header and footer. With PHP, I just include them in other files, so I don't need to write the code all over again or fix everyting seperetly.

The problem was that when I made a file for admin only, I forgot to include a script link that made the "hamburger" button functional.

I forgot it because, It didn't matter, because anyway only I can see the admin file. That's why I forgot about the script that I included in the footer. Don't make the same mistake.

The answer is, I included the footer in the "edit" and the "add" files at the bottom, and it worked. or you could just paste the script. That would work too.

Source