Current Page Template Viewer
Display current template file and directory name on screen for WordPress development.
Plugin info
Maintenance & Compatibility
Maintenance score
Stale • Last updated 190 days ago
Is Current Page Template Viewer abandoned?
Likely maintained (last update 190 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
This plugin helps WordPress developers by showing which template files are being used on the current page. It displays the current template file name and directory path in a convenient overlay, making it easy to identify which template is rendering the current page during development.
The plugin shows a small, unobtrusive display that can be clicked to reveal detailed information about all template files loaded for the current page.
Key Features:
* Shows current template file name
* Displays template directory path
* Click to view all included template files
* Configurable display position (top-left, top-right, bottom-left, bottom-right)
* Customizable background and text colors
* Admin-only display option for security
* Debug mode option (only shows when WP_DEBUG is enabled)
* Lightweight and performance-optimized
* Clean, modern interface
Perfect for:
* Theme developers
* WordPress developers
* Site debugging
* Template hierarchy understanding
* Development and staging environments
The plugin is designed to be completely safe and non-intrusive, with options to restrict visibility to administrators only.
Installation
- Upload the plugin files to
/wp-content/plugins/current-page-template-viewer/ - Activate the plugin through the ‘Plugins’ screen in WordPress
- Go to Settings > Current Page Template Viewer to configure display options
- The template information will appear on the frontend according to your settings
Frequently Asked Questions
After activating the plugin, it will automatically display template information. You can configure the display options by going to Settings > Current Page Template Viewer.
Click on the template display overlay on the frontend. This will open a popup showing all template files that were loaded for the current page.
Yes, you can choose from four positions: top-left, top-right, bottom-left, or bottom-right through the plugin settings.
Yes, you can customize both the background color and text color. The plugin supports both hex colors (#ffffff) and rgba values (rgba(255,255,255,0.5)).
No, this plugin is designed to be lightweight and only displays information when needed. It has minimal impact on performance.
Yes, you can set the plugin to only show template information to administrators, or you can set it to only display when WP_DEBUG is enabled.
While the plugin is safe, it’s primarily intended for development and staging environments. The admin-only and debug-only options make it safer for production use, but we recommend disabling it on live sites.
Yes, the plugin correctly identifies and displays both parent and child theme template files.
Yes, you can choose to display only the theme directory, only the template file name, or both through the plugin settings.
Review feed
Changelog
1.1.0
- Major Fix: Completely rewrote template detection system for WordPress.org compliance
- Removed usage of global WordPress variables that were causing plugin review rejections
- Implemented safe template detection using WordPress standard APIs only
- Improved template file detection accuracy across all page types (posts, pages, archives, etc.)
- Added proper fallback mechanisms for template detection
- Enhanced compatibility with custom post types and taxonomies
- Fixed template detection for complex WordPress template hierarchy
- Removed PHP closing tags following WordPress coding standards
- Better error handling and edge case management
1.0.1
- Fixed variable escaping for WordPress.org security standards
- Updated all function and variable names to use unique prefixes
- Improved code structure and security
- Added external JavaScript file for better performance
- Enhanced popup functionality
- Better error handling
1.0.0
- Initial release
- Template file name display
- Directory path display
- Basic configuration options
- Popup showing included files
- Position and color customization


