Forums

Different themes based on URL (3 posts)

  1. Imphenzia
    Member
    Posted 2 years ago #

    Hi,

    I'd like to have different themes active on a blog based on what the URL is - is that possible?

    Example:
    http://www.myblog.com/category/summer (applies the theme Summer)
    http://www.myblog.com/category/winter (applies the thepe Winter)

    It's not multiple blogs on the same database that I'm after - but rather multiple themes in one blog.

  2. gerbilk
    Member
    Posted 2 years ago #

    You can easily make custom page templates and custom category templates. For a category you would just need to copy over the category.php from one theme(summer) to the active theme(winter) and name it category-id.php where id is the numerical id of the category. You also need to copy across any relevant css, images and javascript and adjust any links accordingly.

  3. gerbilk
    Member
    Posted 2 years ago #


  4. mobilesentience
    Member
    Posted 1 year ago #

    I needed this exact thing recently for my site and couldn't find anything. So I modified another plugin that switched theme based on dns settings. I uploaded it here for anyone else that might be interested.

    http://www.mobilesentience.com/apps/oss/virtual-theme/

Topic Closed

This topic has been closed to new replies.

About this Topic