Home › Forums › Support › How to Detect Browser? This topic has 3 replies, 2 voices, and was last updated 5 years, 2 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 5, 2018 at 5:13 am #541784 Vish Hello! I am using custom CSS to show the heading in a fancy way. But it turns out that the custom CSS does not work Internet Explorer (in some old versions). So, is there a way (PHP Code?) to detect the browser and not load that particular CSS (it is in the Additional CSS Section)? Thanks! April 5, 2018 at 11:09 am #542212 TomLead Developer Lead Developer You would have to use javascript. Here’s an example: https://gist.github.com/ccurtin/6fb05b7739e6e538e783 Then you’d do this to your CSS: body:not(.IE) .your-selector { } April 5, 2018 at 12:25 pm #542290 Vish Forgive my ignorance but, where should I put the JavaScript? Please help! April 5, 2018 at 10:11 pm #542620 TomLead Developer Lead Developer You could put it in the wp_footer hook in GP Hooks, within these tags: <script> // JS in here </script> Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In