Php script sidebar doesn’t work
Hello DevDojo community, i’m building an php script and i’m busy with admin dashboard, but sidebar does’t work for phones like hide sidebar, i’m using sb admin 2 you can see photo here: http://prnt.sc/u4lpmo if someone can help me it would be awesome! Thanks have a good day!
Hi there,
It seems like that the JS files might not be loaded. If you open your browser's web dev tools and then go to the Console, do you see any errors there?
I don’t see errors but when i try menu sidebar it doesn’t work but when i open html file it works
on the phone it looks like this
Hello,
Have you included the required JS files to your main blade layout?
Also if you go to the network tab are there any 404 errors there for resources that are not loaded?
Yes i did it, i got 3 pages header, footer, and index and i did set it up on header.php all is set up but that doesn’t work when i set the whole index.html on header.php it works
Hi there,
Have you checked the page source code once it loads? That way you will make sure that all of the resources are included.
I think yes but can i send you somewhere the details in private and see for yourself?
Just a quick update here, the problem was that the JS files were not loaed and were returning 404. They had to be placed in the public folder.