WordPress.org

Ready to get started?Download WordPress

Forums

Plugin to switch themes based on user agent? (1 post)

  1. goodevilgenius
    Member
    Posted 5 years ago #

    I was wondering if there exists a plugin to change the theme dynamically based on the user agent. I search in the plugins directory, but couldn't find anything.

    What I'm looking for is for the admin to enter a regex to match to the user agent, and choose one of the themes if that regex is matched. They should be able to enter as many regexs as they like.

    I've seen a couple plugins that change to a specific theme based on a specific user agent (for example, WPTouch to get an iPhone-optimized site, or WordPress Wii Edition to get a Wii-optimized site), but I want something more generic.

    If none exists, I'll probably write one myself. It shouldn't be too hard.

Topic Closed

This topic has been closed to new replies.

About this Topic