PHP Browser Detection
[resolved] Where? (2 posts)

  1. Regson
    Posted 2 years ago #

    I'm pretty new to this and I'm unsure where I have to post the code to make it work:
    <?php if(is_chrome($version)) { /* do stuff */ }; ?>

    I put it inside a page in the "text" tab and inserted what I wanted it to do, I tested it on all browsers and it worked for all when I wanted it to only work for Chrome.

    What am I doing wrong? I assume I am not posting it in the correct place.


  2. MartyThornley
    Plugin Author

    Posted 2 years ago #

    Php code like that will only work in the template files, not the post editor.

    Although it makes me think a shortcode option for the plugin might be a nice idea.

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


No tags yet.