Here is the problem:
I created a page containing only a navigation menu. The toggle button works perfectly there; I can open and close the menu. However, when I embed the page into the main page using a PHP include, I can open the menu but not close it.
How did you do the following?
Can you post what is included, how and where?
Just by going by the order in which you created them I am thinking you have all the head tag stuff included twice. Does your include file also have all the head information? This is likely causing a conflict.
The general way to create PHP includes is to build it right in your destination page and then convert that content to an include file from there.
1 Like
But what's inside the include, you can’t include a whole page an include? You know you can paste the code here, wrapped in three back ticks?

