Difference between content-page.php and page.php
-
Hi!
I would like to know what is the difference between following template files in Underscores starter theme (underscores.me)?
– content.php – single.php
– content-page.php – page.php
– content-search.php – search.php
– content-none – 404.phpI’m building my theme on Underscores and I would love to through out ALL the unnecessary files. I want to have just few different views:
1) Single view where the whole post/page is shown
2) Catergory/archive view with list of post excerpts (front page is also like this)
3) 404 not found view
4) search result viewI would like to have just two template files where one makes one single post/page view and another the excerpt list view.. I’m sure there is reason behind but I just cannot understand why there is so many template files… Anyone can tell me? I cannot find for example content-page.php from the template hierarchy. I tried to read it true but it didn’t help.
So my question is: What is meaning of those files (content-page.php, content-page.php, content-search.php, content-none.php) and which all files can I remove so that my simple site still works nice and smooth?
- The topic ‘Difference between content-page.php and page.php’ is closed to new replies.