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
* 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">';
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