How to use the Method Create Element (JS) in another PHP file?

47 Views Asked by At

I copied a mobile menu from "https://www.100percent.com/" (mobile version). My HTML local page it works fine, but when I put the code in the PHP "header.php", the solution does not work completely.

The DIV that contains the Drawer Is Visible is not created and does not appear.

The site is "https://m.intensebikeshop.com.br".

These pictures show the difference.

A: My PHP page online

B: My local HTML page

The method create 2 divs before </body>, but this tag is the footer.php file. Maybe this is the problem I am not sure.

My page is composed by 3 files (header, home-page and footer.php).

I tried using the z-index. But I think the problem is the method. I see the JS file is not creating the DIVs.

The JS file is: Theme file JS

0

There are 0 best solutions below