Easiest solution to identify the wordpress template is to use the below code in the theme functions.php file
This is a simple code. First we create a function to print the template path and using the action filter the path is printed on to the footer of the website. Please note that template path will be printed at the footer only if the user is logged into the admin dashboard with administrator privilege
function show_template() { if( is_super_admin() ){ global $template; print_r($template); } } add_action('wp_footer', 'show_template');
One thought on “Find which WordPress template file is currently used?”
Comments are closed.