I have two headers made in different php files.
One header is for index page only and other is for other pages.
I included them with php include_once
command
and i need to set on index page when i scroll to remove first header and show other header.
To do that i need to change include command, does anyone know how?
Asked
Active
Viewed 53 times
1

Predrag Grbatinic
- 65
- 1
- 9
-
Just include both, and on scroll event hide one with JS – inubs Aug 29 '16 at 11:54
-
Instead of removing the first header it would be better to never include it in the first place. If you want more help you're going to have to share your code. Please [edit] your question and [add it there](https://meta.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks). – ChrisGPT was on strike Aug 29 '16 at 11:55
-
Ok, do you think i should remove include and in js set when top page show first, when scroll show second? – Predrag Grbatinic Aug 29 '16 at 11:58
-
Thanks guys i included both and then displayed header that i needed. – Predrag Grbatinic Sep 02 '16 at 10:52