Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Display the name of the current WordPress template being used
<?php
/**
* Debug function to show the name of the current template being used
*/
function show_template() {
global $template;
echo '<div style="background-color:#000;color:#fff">';
print_r($template);
echo '</div>';
}
add_action('wp_head', 'show_template');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment