H
H
hohhohho2016-03-23 18:47:39
PHP
hohhohho, 2016-03-23 18:47:39

How to add a blog to the site in this case landing page?

There is a site, according to the structure of the landing page, you need to add a blog to it in order to post news. How can I add it? Site without CMS.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tutucu, 2016-03-23
@hohhohho

Take the layout page of the landing page, make a copy, delete all the content in the copy, except for the header and footer of the site, then make a theme for wordpress out of these remnants (write archive, index, sidebar, menu, footer) - this part will be a blog. Do the following with the original page: copy the content (except for the footer, header and head) and paste it into some new file created for this, ala - landing-page.php, any name - the main file extension is .php and in the folder with the theme . At the beginning of the file write:

<?php
/*
Template Name: Шаблон главной страницы
*/
?>

Then you go to the site admin panel, add a page, for example - "Main" and at the bottom of the editing page select "Page output template" -> "Main page template" (When you go to this page, your landing page will be displayed) Save. Display this page in the menu and rejoice.

V
Vladimir Krylov, 2016-03-23
@Meowow

Add a separate blog page and implement it.
Although, I am sure that WordPress is best for this purpose.

W
Web Developer Blog, 2016-03-23
@Alexey_Suprun

Remake the landing page on WordPress and add a blog there, IMHO

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question