J
J
jenya77712016-09-28 19:03:38
PHP
jenya7771, 2016-09-28 19:03:38

Why is the template not being used for the main WP?

I made a new main page, for it I created a template in which there is a slider after the header, but when this page is turned on as the main one in the WP settings, this template is not used, although it is included in page editing! What's wrong, please help.
0e636bb02c25461ba1c1e1b2763db04b.PNG

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Denis Yanchevsky, 2016-09-28
@jenya7771

For the main page, the front-page.php template is used .

S
Sn0wSky, 2016-09-28
@Sn0wSky

Just in case, you would also show in the settings how you set it, otherwise you never know what :)

J
jenya7771, 2016-09-28
@jenya7771

16307bdaab2344a49b63c74ad2ab3a02.PNG

S
Sergey, 2016-09-29
@void01

What you are showing is a template added by the theme functions, in this topic for posts it is possible to change the template
. if you unlink the page from the main one, the page-home.php template or something like that will be used for it, maybe content-home.php depends on what prefix the theme developer invented and put into the get_template_part () function;
and at the expense of basic templates - print and hang on the wall, wp template engine file hierarchy
https://developer.wordpress.org/files/2014/10/temp...
template-hierarchy.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question