How do I hide code in the header template for users who have disabled JavaScript?
Like the title says, how do I hide certain code in the header template for users who have disabled JavaScript?
I have a google custom search box in the header. When a user doesn't have javascript enabled in their browser, the search box does not work correctly, so I would like to hide it from those users.
I've tried <if condition="$show['popups']"> but that condtional won't work in the header template. I can't figure out how to make it work in the header template.
Does anyone know how I can made the conditional above work in the header template or another way and hide certain code from people who don't have javascript enabled?
Thank you very much!
|