N
N
nutritsio2018-02-21 21:06:12
css
nutritsio, 2018-02-21 21:06:12

How to add wordpress page to navbar?

Hello, I'm building a wordpress site .
Please help me create separate pages with the ability to edit them using HTML,
Bootstrap
, and navigate through them using the menu.
I create pages and they appear in the menu, but I can’t navigate through them and they are created by blog posts.
5a8db4cc85084089370725.png
By going to any page using the navbar menu :
5a8db50f71636911378286.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-02-21
@nutritsio

Hello!
- Create a normal page through Pages.
- Create a template (php file called page-mypage.php)
- add
<?php code to the top of the page

/*
*Template Name: Название Страницы
*/
?>

- assign this template to this page you created through the admin panel. On the right side of the page edit page, you will see Page Attributes - Template.
- Add a link to this page in the navbar
-----------
Although, if done correctly, you need to create a custom walker for the navbar bootstrap
Ready - https://github.com/wp-bootstrap/wp- bootstrap-navwalker
Then you can create a bootstrap menu from the admin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question