I have a website that I am building for a demo-purchase site using wordpress. On the top it has a header bar. This header has the option to click "Remove Frame" and it disappears. I used JQuery create this effect. My problem is that once I make the header disappear, and then I click on a different link for the website the header comes back. How can I make it stay disappeared once you click the "Remove Frame" option? Here is a link to the site: http://www.demo.doneforbodyshops.com/
Every new page loaded that contains the header will reload the header, this is normal. You need a session cookie to store the changes. By the way, it would be more sensible to reload the header on every new page if there is no way to re-display it.
You can remove the header bar by using:
$("#div1").remove()
which will remove the header bar from the DOM
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.