What is the first file wordpress looks at in a theme?
Clash 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?
themes
add a comment |Â
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?
themes
What is the "inc" entry?
– MrWhite
Sep 7 at 19:33
1
Technically, withstyle.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
add a comment |Â
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?
themes
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?
themes
asked Sep 7 at 17:22


SeanJ
12717
12717
What is the "inc" entry?
– MrWhite
Sep 7 at 19:33
1
Technically, withstyle.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
add a comment |Â
What is the "inc" entry?
– MrWhite
Sep 7 at 19:33
1
Technically, withstyle.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
add a comment |Â
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.
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 forfront-page.php
only if static front page was selected in settings.
– Nazaria
2 days ago
add a comment |Â
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.
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 forfront-page.php
only if static front page was selected in settings.
– Nazaria
2 days ago
add a comment |Â
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.
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 forfront-page.php
only if static front page was selected in settings.
– Nazaria
2 days ago
add a comment |Â
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.
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.
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.
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 forfront-page.php
only if static front page was selected in settings.
– Nazaria
2 days ago
add a comment |Â
AFAIK, it'll look forfront-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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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