WordPress.org

Ready to get started?Download WordPress

Forums

How to provide an alternative theme say for mobile devices (4 posts)

  1. monkeypunch3
    Member
    Posted 2 years ago #

    Is there a way that I can show an alternative theme to some visitors? For example, say if someone visits my site with a mobile device I want to show a mobile theme.

    In more detail, specifically, I'd like to be able to show this alternative theme based on a URL parameter,

    http://www.site.com/blog/?android=1
    http://www.site.com/blog/?iphone=1
    http://www.site.com/blog/?ipad=1

    Thank you

  2. Digital Raindrops
    Member
    Posted 2 years ago #

    I found this post with code and there is also a WordPress plugin.

    This worked on Localhost using a category, I wanted to use it to load a blog in a Facebook Fanpage IFrame, but this loses the parent URL.

    It will load the first page with the swapped theme but the match string then goes out of shape.

    It might be better just to use multi-site with different themes.

    HTH

    David

  3. monkeypunch3
    Member
    Posted 2 years ago #

    Ah way cool! :)

  4. Digital Raindrops
    Member
    Posted 2 years ago #

    Here is another mobile plugin that might be better, although it has not been updated to WordPress 3xx

    HTH

    David

Topic Closed

This topic has been closed to new replies.

About this Topic