Home › Forums › Support › hide div for javascript deactivated browsers. This topic has 11 replies, 2 voices, and was last updated 2 years, 1 month ago by David. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts March 11, 2022 at 6:55 am #2150753 Patricia Hi guys can you please help? I would like to ask how do I proceed to hide the main content div to browsers that are not using javascript and replace the content with a message saying that this site needs javascript to continue the access (in the main content area div). Many many thanks for that! March 11, 2022 at 7:28 am #2150785 DavidStaff Customer Support Hi there, I am really not sure about this, but if need be you can use a Hook Element, to add some <noscript> HTML and styles to the page: <noscript> <style> #main { display: none !important; } </style> <div>Your no Javascript message here</div> </noscript> Use the generate_before_main_content hook March 11, 2022 at 9:15 am #2151022 Patricia thank you! I will try this and will let you know! Have a great weekend! March 11, 2022 at 9:21 am #2151031 DavidStaff Customer Support You’re welcome and you too March 11, 2022 at 9:29 am #2151045 Patricia Hello David! This works but I cannot show the warning message. any thoughts? thank you! March 11, 2022 at 9:31 am #2151051 DavidStaff Customer Support Where can I see this ? March 11, 2022 at 9:33 am #2151052 Patricia I put my message where you indicated </style> Your no Javascript message here </noscript> But i can just see the blank div without the prase. do you know what I mean? π thank u! March 11, 2022 at 9:45 am #2151071 DavidStaff Customer Support Sorry I meant a link to a page on the website you added it to March 11, 2022 at 9:45 am #2151072 Patricia ah ok! I am sending in the private tab π Merci! March 11, 2022 at 9:49 am #2151078 DavidStaff Customer Support Oh my – what was I thinking lol. Change the Hook to generate_after_header The other hook is inside the element that the script is hiding… so it hides itself π March 11, 2022 at 9:52 am #2151081 Patricia hahaha no problems!! It is working perfectly now! Thank you! Have a great weekend! Patricia. March 11, 2022 at 9:57 am #2151084 DavidStaff Customer Support Glad to hear that!! Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In