What is the first file wordpress looks at in a theme?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
3
down vote

favorite












I've inherited a theme and am trying to get my head around a plugin failure.



There is an index.php file in the root of the theme, is that the first file wordpress will look at when it attempts to resolve the homepage or maybe it is something else?



All files in the the root are as follows:



404.php
archive-jetpack-testimonial.php
archive.php
assets
comments.php
footer.php
front-page.php
functions.php
header-front.php
header.php
inc
index.php
page.php
rtl.css
screenshot.png
search.php
secure.php
sidebar.php
single.php
style.css
style.css.map
template--standard.php


With which file does wordpress begin?







share|improve this question




















  • What is the "inc" entry?
    – MrWhite
    Sep 7 at 19:33






  • 1




    Technically, with style.css to determine the name of the theme and whether it's a child theme, and whether it's the theme that the blog is configured to use.
    – Michael Hampton
    Sep 7 at 23:02
















up vote
3
down vote

favorite












I've inherited a theme and am trying to get my head around a plugin failure.



There is an index.php file in the root of the theme, is that the first file wordpress will look at when it attempts to resolve the homepage or maybe it is something else?



All files in the the root are as follows:



404.php
archive-jetpack-testimonial.php
archive.php
assets
comments.php
footer.php
front-page.php
functions.php
header-front.php
header.php
inc
index.php
page.php
rtl.css
screenshot.png
search.php
secure.php
sidebar.php
single.php
style.css
style.css.map
template--standard.php


With which file does wordpress begin?







share|improve this question




















  • What is the "inc" entry?
    – MrWhite
    Sep 7 at 19:33






  • 1




    Technically, with style.css to determine the name of the theme and whether it's a child theme, and whether it's the theme that the blog is configured to use.
    – Michael Hampton
    Sep 7 at 23:02












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I've inherited a theme and am trying to get my head around a plugin failure.



There is an index.php file in the root of the theme, is that the first file wordpress will look at when it attempts to resolve the homepage or maybe it is something else?



All files in the the root are as follows:



404.php
archive-jetpack-testimonial.php
archive.php
assets
comments.php
footer.php
front-page.php
functions.php
header-front.php
header.php
inc
index.php
page.php
rtl.css
screenshot.png
search.php
secure.php
sidebar.php
single.php
style.css
style.css.map
template--standard.php


With which file does wordpress begin?







share|improve this question












I've inherited a theme and am trying to get my head around a plugin failure.



There is an index.php file in the root of the theme, is that the first file wordpress will look at when it attempts to resolve the homepage or maybe it is something else?



All files in the the root are as follows:



404.php
archive-jetpack-testimonial.php
archive.php
assets
comments.php
footer.php
front-page.php
functions.php
header-front.php
header.php
inc
index.php
page.php
rtl.css
screenshot.png
search.php
secure.php
sidebar.php
single.php
style.css
style.css.map
template--standard.php


With which file does wordpress begin?









share|improve this question











share|improve this question




share|improve this question










asked Sep 7 at 17:22









SeanJ

12717




12717











  • What is the "inc" entry?
    – MrWhite
    Sep 7 at 19:33






  • 1




    Technically, with style.css to determine the name of the theme and whether it's a child theme, and whether it's the theme that the blog is configured to use.
    – Michael Hampton
    Sep 7 at 23:02
















  • What is the "inc" entry?
    – MrWhite
    Sep 7 at 19:33






  • 1




    Technically, with style.css to determine the name of the theme and whether it's a child theme, and whether it's the theme that the blog is configured to use.
    – Michael Hampton
    Sep 7 at 23:02















What is the "inc" entry?
– MrWhite
Sep 7 at 19:33




What is the "inc" entry?
– MrWhite
Sep 7 at 19:33




1




1




Technically, with style.css to determine the name of the theme and whether it's a child theme, and whether it's the theme that the blog is configured to use.
– Michael Hampton
Sep 7 at 23:02




Technically, with style.css to determine the name of the theme and whether it's a child theme, and whether it's the theme that the blog is configured to use.
– Michael Hampton
Sep 7 at 23:02










1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










If it's the home page, WordPress will look for the following files in this order and use the first one it finds:



1. front-page.php
2. home.php
3. index.php


WordPress template hierarchy is described in detail here:



https://developer.wordpress.org/themes/basics/template-hierarchy/




This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited.







share|improve this answer










New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • AFAIK, it'll look for front-page.php only if static front page was selected in settings.
    – Nazaria
    2 days ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "110"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f313619%2fwhat-is-the-first-file-wordpress-looks-at-in-a-theme%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










If it's the home page, WordPress will look for the following files in this order and use the first one it finds:



1. front-page.php
2. home.php
3. index.php


WordPress template hierarchy is described in detail here:



https://developer.wordpress.org/themes/basics/template-hierarchy/




This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited.







share|improve this answer










New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • AFAIK, it'll look for front-page.php only if static front page was selected in settings.
    – Nazaria
    2 days ago














up vote
5
down vote



accepted










If it's the home page, WordPress will look for the following files in this order and use the first one it finds:



1. front-page.php
2. home.php
3. index.php


WordPress template hierarchy is described in detail here:



https://developer.wordpress.org/themes/basics/template-hierarchy/




This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited.







share|improve this answer










New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • AFAIK, it'll look for front-page.php only if static front page was selected in settings.
    – Nazaria
    2 days ago












up vote
5
down vote



accepted







up vote
5
down vote



accepted






If it's the home page, WordPress will look for the following files in this order and use the first one it finds:



1. front-page.php
2. home.php
3. index.php


WordPress template hierarchy is described in detail here:



https://developer.wordpress.org/themes/basics/template-hierarchy/




This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited.







share|improve this answer










New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









If it's the home page, WordPress will look for the following files in this order and use the first one it finds:



1. front-page.php
2. home.php
3. index.php


WordPress template hierarchy is described in detail here:



https://developer.wordpress.org/themes/basics/template-hierarchy/




This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited.








share|improve this answer










New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited Sep 7 at 18:04





















New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered Sep 7 at 17:57









Andy P

713




713




New contributor




Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Andy P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • AFAIK, it'll look for front-page.php only if static front page was selected in settings.
    – Nazaria
    2 days ago
















  • AFAIK, it'll look for front-page.php only if static front page was selected in settings.
    – Nazaria
    2 days ago















AFAIK, it'll look for front-page.php only if static front page was selected in settings.
– Nazaria
2 days ago




AFAIK, it'll look for front-page.php only if static front page was selected in settings.
– Nazaria
2 days ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f313619%2fwhat-is-the-first-file-wordpress-looks-at-in-a-theme%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

Confectionery