Support » Plugin: PHP Browser Detection » Usage question

  • Resolved SimplyMarkB

    (@smartguyus)


    Hi everybody,

    I have a question.. in my wordpress header.php,

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” />

    I want to use this plugin to create custom stylesheets based on browser.

    Any suggestions on usage? I tried
    <?php if(is_firefox($version)) {
    <link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
    }; ?>

    Can I do calls like this? Will this plugin work in header.php?? Not sure that I am doing wrong.. suggestions??

    -Mark

    http://wordpress.org/plugins/php-browser-detection/

Viewing 1 replies (of 1 total)
  • Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    Your PHP syntax is wrong. You would need to do something like this:

    <?php if(is_firefox()) : ?>
    <link rel="stylesheet" type="text/css" href="mystyle.css">
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Usage question’ is closed to new replies.