I have been looking into doing some adjustments to a site. What I need to do is fairly easy but I am not sure which template files are being resourced to build the page in question.
I figured out a way in a past project - but it required opening every file, then just below the WP php comment, I copy and paste the file name into the page so that it would output that rendered on the resulting page. It works but is very limited ( for instance, you have to do a little more work to distinguish between theme files and child theme files so it might look like "/mytheme-child/page.php" )
Is there a debug tool that would do something like this or list at the bottom all files referenced when building the page?