Quickly find which WordPress template file is currently being used

Add to functions.php file

function meks_which_template_is_loaded() {
	if ( is_super_admin() ) {
		global $template;
		print_r( $template );
	}
}
 
add_action( 'wp_footer', 'meks_which_template_is_loaded' );

Leave a Reply

Your email address will not be published. Required fields are marked *