Answer the question
In order to leave comments, you need to log in
How to add an additional page (for example, contacts) in a wordpress theme?
I can't figure out how to add additional pages. I made up the login page, registration page, main page and others. Threw in the topic. I was able to pull only the main one: I just threw it into the index.php of the theme, but I don’t understand how to add others, since in all tutorials they make up a landing page with one main page. Also climbed into the WordPress documentation, did not help.
Or, if it’s enough just to throw it into the topic: how to specify the path to these files so that you can follow the link to them
Answer the question
In order to leave comments, you need to log in
index.php is not a home page template, it is the most basic template and is used in case WP doesn't find a better one for the request. This template should have the most basic loop, and for the main one it is better to use front-page.php or home.php
To create a page with contacts, you can create a file with an arbitrary name, for example template-contacts.php . Be sure to start the file with the following lines and your layout
/*
Template Name: Шаблон с контактами
Template Post Type: page
*/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question