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');

Cryptocurrency and How Does it Work Previous post What is Cryptocurrency and How Does it Work?
Next post Detect the operating system and browser on WordPress website

One thought on “Find which WordPress template file is currently used?

Leave a Reply

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