• Resolved antonjazz

    (@antonjazz)


    I love the Blank Slate plugin! Wondering if there is any way that you know of to make it fire or not fire depending on a the User Agent of the browser requesting the content. I’d like to have my WP site omit the headers when it delivering content to a particular mobile app (as identified by its own unique User Agent) but include them under other circumstances.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aaron Reimann

    (@areimann)

    I think you could modify functions.php to detect the agent and then load or not load depending, but the plugin does not support that by default.

    You could also fork the plugin and edit it directly. To be honest, this plugin shouldn’t change too much over the years because it is so simple.

    Thread Starter antonjazz

    (@antonjazz)

    Thank you, Aaron! I’ve never edited a plugin, but perhaps I’d be able to do what you say in functions.php. Much obliged!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Activate depending on User Agent?’ is closed to new replies.