WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Problem with php HTTP_USER_AGENT (1 post)

  1. Preeminent
    Member
    Posted 1 year ago #

    Hello! I'm hoping I have a simple problem here. I'm hiding a few things from mobile phones by wrapping the html in: <?php if(!preg_match('/(symbian|smartphone|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) : ?> and it works great, but when I install this awesome plugin, the code no longer works, and the items are downloaded and shown on mobile phones. Does anyone have any ideas on how I can fix this? Thanks!

    http://wordpress.org/extend/plugins/w3-total-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags