Drupal 7: Get the tpl.php name of a certain View

I was trying to theme a certain view in a D7 site since I couldn’t get Views to do what I needed without using my own PHP and jQuery.

It took me ages to track down what name to use in the tpl file for my theme. The easiest way of finding out what tpl.php name to use, either for a single view, type of view (e.g. unformatted list) or all views is to go into:

Structure > View > Edit your view

Then under Advanced of the right you will find a “Theme: Information” link that gives you extensive information on the files in use. Enjoy.

Tags:

About the Author

I'm a web developer based in the East Midlands, UK and if I keep up the current rate, I might have developed 3 million sites by the time I retire