How to find out what views page you're looking at I have the $is_portfolio variable in my "template.php" file that lets me easily check what content type is being displayed, so I can do freaky and awesome stuff with it:

function mycooltheme_preprocess(&amp;$variables, $hook) {
  if ($hook == 'page' ) {
    if ($variables['node']-&gt;type == 'portfolio') {
      $variables['is_portfolio'] = TRUE;
    }
    else {
      $variables['is_portfolio'] = FALSE;
    }       
  }
}


In my "page.tpl.php" file, I use it through a conditional which lets me change the markup depending on the content type:

&lt;?php if ($is_portfolio) : ?&gt;
  // Use this layout
&lt;?php elseif (!$is_portfolio) : ?&gt;
  // Boo, use this layout instead :-(
&lt;?php endif; ?&gt;


How can my code in "template.php" be customized so it can also check which Views page is being displayed, so I can target those as well?
Use menu_get_item() to retrieve the page callback for the currently shown path, and check it correponds to 'views_page', which means you are in a view.

function mycooltheme_preprocess_page(&amp;$vars) {
  $menu_item = menu_get_item($_GET['q']);

  if ($menu_item['page_callback'] == 'views_page') {
    $vars['is_portfolio'] = ($menu_item['page_arguments'][0] == 'path_of_your_view');
  }
}


You can also use current_path() directly, but I found interesting to know that you're on a Views page using menu_get_item().