I have built a simple CSS dropdown horizontal navigation, user scrolls over categories and the dropdown shows the respective sub-cats, (nice for webmasters with a smaller number of sub-cats)
Works great on the homepage, but with it being horizontal im needing it to be either hardcoded into the header or pulled into the header as a serverside include from a separate file nav.php for example so it is included on every page..
Hardcoding into the header or using a serverside include both throw out these errors
Notice: Undefined variable: categories in C:\wamp\www\oscom\oc-content\themes\simply\header.php on line 124
Warning: Invalid argument supplied for foreach() in C:\wamp\www\oscom\oc-content\themes\simply\header.php on line 124
this even happens if i cut and copy the dropdown code from home.php and put it at the very end of the header.php code, any ideas?
thanks