C
C
calvin_orange2018-03-08 19:59:21
Layout
calvin_orange, 2018-03-08 19:59:21

How to make different types of Wordpress pages?

Hello!
I have a need to design a layout with Bootstrap 4 framework and fit it on Wordpress
. I have not dealt with landing on WP before, so I'm interested in the following point:
How to create different types of pages?
WP is more focused on blogging. In addition to the blog, on the site, I also need to add several landing pages with completely different headers and footers.
Tell me how can this be done? Preferably in clear and simple language.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex-1917, 2018-03-09
@alex-1917

WP is more focused on blogging.

google less at night!!! )))
open the files of the default theme and study, I'm talking about the nonsense that was written above with regards to hats and cellars !!! what the heck!! ppc.
header file - ONE
footer file - ONE!
Then, if you need different templates for different pages, use the RECOMMENDED way:
1. copy the page.php file,
2. name land-page-one.php,
3. change at the beginning of the file to this:
<?php
/*
Template Name: Лендинг#1
*/

4. upload this file to the template folder
5. select this template in the admin panel for the desired page (it will be in the list of templates under the name Landing #1
6. drink cognac
7. send me half of the bottle
8. I also drink cognac

A
alvvi, 2018-03-08
@alvvi

How to make different types of Wordpress pages?

Create a custom template and assign it to the page. It is created as a file with a special comment in the folder with the theme. Information can be found here
Different headers and footers can be inserted normally get_footer/get_headerusing the argument $nameeg if there is footer-foo.php in the theme folder, it will include this footer, not footer.php get_footer('foo');

O
Orkhan Hasanli, 2018-03-08
@azerphoenix

Hello!
There are several different ways.
1) As Ilya Rostopka noted, you can use different header & footer in the page template itself.
For example, you will have a header-main.php file so you use: get_header('main');
2) You can use a different theme for each page using a plugin (if it is assumed that the pages will be fundamentally different)
Multiple themes
https://ru.wordpress.org/plugins/jonradio-multiple...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question