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

  1. madmobrak
    Posted 3 years 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


    [Bump deleted]

  2. Mindshare Labs, Inc.
    Plugin Author

    Posted 2 years 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:

    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