• In the page I put the following:

    [insert_php]
    if(is_firefox()) {
    echo “did it?”;
    }else{
    echo “did not”;
    }
    [/insert_php]

    On the page, nothing is there at all. (and yes, using FF)

    But this works:

    [insert_php]
    echo “did it?”;
    [/insert_php]

    So what am I doing wrong. It shows the plugin is activated.

    Doc

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

Viewing 1 replies (of 1 total)
  • Thread Starter tthdoc

    (@tthdoc)

    Update.

    Solved one issue in that I did not code it in the text tab, so I fixed that so at least there is output now. But the output was “did not”. If it detected I was using FF it would have said “did it?”. And if I tried to echo get_browser_name() it would get Default Browser.

    Doc

Viewing 1 replies (of 1 total)
  • The topic ‘Nothing works – what is wrong?’ is closed to new replies.