This morning I realized my blog needed some CSS tweaks for Camino (sorry, Camino users). Here's the code I used to test for the Camino browser and conditionally load a style sheet to fix the CSS issues.
<?php
// I put this function in my theme's template.php file:
function MYTHEME_preprocess_page(&$variables) {
if (stripos($_SERVER['HTTP_USER_AGENT'], 'Camino')!==false) {
$variables['styles'] .= "<link type='text/css' rel='stylesheet' media='all' href='" . base_path() . path_to_theme() . "/style.camino.css' />";
}
}
?>I then created a file in my theme directory called "style.camino.css" and put my CSS tweaks in there.









