This must be a very amateurish question but...
I'm using page templates from the dropdown menu in page editor but I can't find their source code. I know that usually this can be found in themes/"theme name"/page-templates, but no matter how hard I look, I just can't find the files for several of the templates I'm using ("Full-Width Template", "Page with Navigation Only" etc.). Any tips?
Thanks a lot!
This must be a very amateurish question but...
I'm using page templates from the dropdown menu in page editor but I can't find their source code. I know that usually this can be found in themes/"theme name"/page-templates, but no matter how hard I look, I just can't find the files for several of the templates I'm using ("Full-Width Template", "Page with Navigation Only" etc.). Any tips?
Thanks a lot!
Share Improve this question asked Mar 31, 2020 at 15:39 Kristýna ŠulcováKristýna Šulcová 255 bronze badges 3 |2 Answers
Reset to default 1You can simply right click on your Template Select on the edit page, Inspect Element (on Chrome) then you can check the different options in the select like "page-template.php" as value and find your template file. :)
<select id="inspector-select-control-0" class="components-select-control__input">
<option value="">Default</option>
<option value="page-my-account.php">My Account</option>
</select>
It should look like this with your own templates.
I suggest you to download the starter theme from Underscores.me
Once you download it will you get a complete structure of a custom theme with all files available and sample code in it. It is just like a prototype. It helps you a lot and give you best understanding.
functions.php
file. – cjbj Commented Mar 31, 2020 at 15:58