P
P
Plu2018-04-17 08:40:10
WordPress
Plu, 2018-04-17 08:40:10

How to use multiple page templates in WorldPress?

Available: WorldPress 4.9.5.
Purpose: to create a page with a different template.
It is necessary that the page does not have a basic template.
The Worldpress help says that you need to create a folder with a css file. And then select a new template in the page edit.
Created a new topic. 5ad5886ab6745040190124.png
But when editing the theme select page, there is none:
5ad5889522e93869055116.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sarkisyants, 2018-04-17
@Plu

The new template is a .php file in the same theme. You can copy the page.php file and change its name in the comments above and you will have your own template.
<?php /* Template Name: Имя шаблона */ ?>

E
E, 2018-04-17
@aylo

Not this way.
Create a sample content file in the theme folder that is active.

<?php
/* Template Name: Some name*/

get_header(); ?>

<?php get_footer();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question