i want to integrate several layouts into my theme. so far I have solved it via page.php and page-blue.php because I saw it that way in tutorials. unfortunately the other template is not displayed under the page attributes. i don’t see the error. even if i choose a different theme the attributes do not appear. what am I doing wrong?
it should look like this
this is how it looks
this is the page.php
this is the page-blue.php
2
Answers
Change the name of the template,
page
is reserved word, also create brand-new file with file name other thanpage.php
, which is also reserved file name.And, for god’s sake, name your template files in a way they mean something, self-explanatory.
Example for dummies:
And the file name of the template should be
some-template.php
inside your theme’s folder!Read more
pls Use This code
instead of this