WordPress.org

Forums

PHP Browser Detection
[resolved] Loading CSS W.R.T the browser (2 posts)

  1. madmobrak
    Member
    Posted 1 year ago #

    hey great plugin!
    im still a beginner .. can CSS be loaded depending on the browser used? if yes .. what is the code ? and where to put it.. thanks in advanced

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

    [Bump deleted]

  2. Mindshare Studios, Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry about the delay. Yes you can add CSS based on the detected browser.

    Try something like this in the header.php file of your theme, inside the HEAD tag:

    <?php
    if(is_firefox($version)) {
        echo '<link rel="stylesheet" href="browser-styles.css" />';
    };
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Browser Detection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic