Log in

View Full Version : How do I hide code in the header template for users who have disabled JavaScript?


Travis-Mc
09-26-2010, 12:21 AM
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!