Question By
Unsolved

Php script sidebar doesn’t work

beratselmanii ・

Aug 23rd, 2020 04:29 PM

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!

bobbyiliev ・

Aug 23rd, 2020 09:53 PM

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?

beratselmanii ・

Aug 24th, 2020 10:45 AM

I don’t see errors but when i try menu sidebar it doesn’t work but when i open html file it works

beratselmanii ・

Aug 24th, 2020 10:54 AM

E08892B4-0CA5-4AFA-9600-05C63A0F414A.jpeg on the phone it looks like this

bobbyiliev ・

Aug 24th, 2020 05:39 PM

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?

beratselmanii ・

Aug 24th, 2020 06:15 PM

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

bobbyiliev ・

Aug 25th, 2020 09:17 AM

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.

beratselmanii ・

Aug 25th, 2020 12:11 PM

I think yes but can i send you somewhere the details in private and see for yourself?

bobbyiliev ・

Aug 25th, 2020 04:45 PM

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.