
HOW TO DETECT THE VISITOR BROWSER WITHIN WORDPRESS
Simply pulp a formula next in your functions.php file: <?php add_filter(’body_class’,'browser_body_class’); duty browser_body_class($classes) { tellurian $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; if($is_lynx) $classes[] = ‘lynx’; elseif($is_gecko) $classes[] = ‘gecko’; elseif($is_opera) $classes[] = ‘opera’; elseif($is_NS4) $classes[] = ‘ns4′; elseif($is_safari) $classes[] = ’safari’; elseif($is_chrome) $classes[] = ‘chrome’; elseif($is_IE) $classes[] = ‘ie’; else $classes[] = ‘unknown’; if($is_iphone) $classes[] = ‘iphone’; lapse $classes; } ?> Once we saved a file, a duty will automatically supplement a CSS category to a physique tag, as shown in a exemple below: <body class=”home blog logged-in safari”> That’s all. You only have to take your stylesheet, as well as supplement a little browser-specific styles! Credits goes to Nathan Rice for this overwhelming trick! Looking for WordPress hosting? Try WP Web Host .
Read some-more from a strange source:
How to acknowledge a caller browser inside of WordPress



