WordPress.org

Ready to get started?Download WordPress

Forums

PHP Browser Detection
[resolved] Parse error, Syntax error (2 posts)

  1. Chukwudi Emmanuel Udegbunam
    Member
    Posted 1 year ago #

    Hi, I'm trying to get the plugin to work on localhost before deploying on my site but it keeps giving me a parse error

    Parse error: syntax error, unexpected '}' in C:\wamp\www\wordpress\wp-content\mobilepress\themes\default\single.php on line 68

    This is the code I added

    <?php if ( is_firefox($version) ) { do stuff }; ?>

    Do I need to make modifications to the code?

    Thanks

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

  2. Mindshare Studios, Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    You need to replace "do stuff" with whatever code you want to execute.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic