How do I set a View to display in a different theme (I'm using Seven as my admin theme and this is the theme I want to use for a few particular views). I searched, but couldn't find an answer. Sorry if this is a repost.

Comments

lynnmart881’s picture

Title: Different them per View? » Different theme per View?
merlinofchaos’s picture

Status: Active » Fixed

Views doesn't have any inherent ability to set a theme.

You can implement hook_init() in a module and do something like this:

function MYMODULE_init() {
  if ($_GET['q'] == 'path/of/view') {
    global $custom_theme;
    $custom_theme = 'themename';
  }
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

OnkelTem’s picture

For Drupal 7:

function MYMODULE_custom_theme() {
  if ($_GET['q'] == 'path/of/view') {
    return 'themename';
  }
}

p.s. Adding this here, since there are links to this page.