Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to properly hide a div on page load? Re: How to properly hide a div on page load?

#83496
shawng
Member

I have this in the header of my theme #wpadminbar { display:none; }

That should be loading before anything else. I think the problem is that wp is inserting the wpadminbar so timing the firing of display:none and holding that during the wpadminbar js load is where I think it is getting stuck