What The File adds an option to your toolbar showing what file and template parts are used to display the page you’re currently viewing.
This plugin is usefull for beginners who use free themes and who don't know that template of their posts they can change on single.php, category template on archive.org etc. But on more advanced themes or plugins, eg woocommerce, where page is made of few php files it often doesn't show all files. There were many times when I had to find some php file and this plugin didn't helped me.
The plugin will give me the main file that controls a page - but I wish it would give me the files that contribute page parts, too - for example, an Add To Cart button from WooCommerce.
There must be 20 files that could plausibly contribute to that button, but all What The File will tell me is that most of the page is coming from mytheme/template.php - well, I knew that.
Now, if only it could tell me what WooCommerce file breaks my responsive header on product pages - right now, I'm just not showing product pages, and adding cta buttons on product listings that occur elsewhere.
I love the way this plugin calls the top-tiered template files. This is very handy. Although I wish it went a littlefurther by showing all the files that are being called.
For instance, on WooCommerce My Account page, it says "page.php" and "content-page.php" are being called. It doesn't list that "my-account.php" or "my-subscriptions.php" are being called and possibly others.
You must log in to submit a review. You can also log in or register using the form near the top of this page.