Fresh News - Blog Design, Wordpress, Blogger, and Web Development

Magznetwork Fresh News aggregate our favorite blogs to watch our favorite topics about blog design, wordpress themes, and blogger templates.

How to detect the visitor browser within WordPress

Filed Under Object, Uncategorized, browser, php

Simply paste the code below in your functions.php file: Once you saved the file, the function will automatically add a CSS class to the body tag, as shown in the exemple below: That’s all. You just have to take your stylesheet, and add some browser-specific styles! Credits goes to Nathan Rice for this awesome trick! Looking for WordPress hosting

Discussion

Go to our Support Forum to discuss this post and share your ideas.