Code Canal is the simple Web resource site for WordPress, Magento and other CMS and frameworks, with easy to understand technologies and provides easy tutorials for the creating and editing site.

Our Latest Tutorials Guide for WordPress :

While designing WordPress theme sometimes we require to show different layout or design according to user's - client's browser or Operating System. So that we can achieve our best result as we want. In this article we will learn How to Add Browser and OS ( Operating System ) Classes in WordPress Body Class By Custom Function.

Put the following code in your theme's function.php file.