Ever wanted to take a quick look at a theme template file without opening an editor? Or wondered what template files were used to display the current page?
This plugin displays all theme template file names in use for the current page in a toolbar menu. File names are shown in the order they were included. File content is displayed in the footer of your site by clicking a file name.
Only admins and super admins have access to the toolbar menu and file content.
For more information see the plugin documentation
Note: Display of file content only works if the current theme follows the recommended practice of calling the wp_footer() template tag (most theme’s do).
Filters can be used to change (override) the default settings or behavior of the plugin.
- Allow specific users access to the menu and content. (convenient for troubleshooting with others)
- Also include plugin files.
- Show the menu in the footer instead of the toolbar.
For more information see the filter documentation.
- Show content with popular syntax highlighter plugins.
- Unzip the
- Upload the
wp-template-viewerfolder to your
- Activate wp-template-viewer.
- That’s it, now you are ready to use the plugin.
Note: There’s no settings page for this plugin.
Wow! Simply wonderful! This plugin is everything I needed to stop wasting time when I need to modify any theme!
Contributors & Developers
“WP Template Viewer” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Added links to select text an hide or show files in the footer.
- Added custom capability ‘view_wp_template_viewer’ for users.
- Added a menu item to see the menu in the footer.
- Better color coding for menu items
- Initial commit.