1) I have made a horizontal menu with CSS only. I have placed this menu in the header.php file. And the CSS in the default.css
So far so good. The menu appears on all pages, on top of the page.
But, when I use a javascript menu (to create a horizontal dropdown menu), this menu disappears, when leaving the 'home' page, like when going to the category or merchant pages...
What can I do to prevent my menu from disappearing?
2) The home page needs to show all kind of info like the featured products, but when clicking further to product, category etc pages, I would like to hide this, so only the lower part showing (copyright, contact, user agreement etc)
Hello Al,
Re 1)
This sounds like you may be referencing a JavaScript file using a relative path whilst using search engine friendly URLs ($config_useRewrite = TRUE); so when browsing to subsequent pages the JavaScript cannot be found. If this is the case, make sure to use a fully qualified path (i.e. beginning with /) in your link to the JavaScript and it should then work fine on additional pages, for example:
<script type='text/JavaScript' src='/topmenu.js' />
Similar problems can occur if the JavaScript itself is generating relative URLs, so you may need to check that also...
Re 2)
Personally, I would separate out any footer content that you want only on the homepage and move this into index.php, positioned immediately before the call to require("html/footer.php"); with html/footer.php then containing only your copyright, contact etc. links that you wish to appear on all pages.
Hope this helps!
Cheers,
David.