#Create Page With Plugin
This code will allows you to create page without adding page in Admin > Pages area. This page can be set as a home page by defining constant path in qa-config.php
. Also you can create menu link by adding page request (page slug e.g. your-page).
##Usage
- Create directory in
qa-plugin
. for example:your-site/qa-plugin/your-page
- Place
qa-plugin.php
andyour-page.php
file inyour-page
directory you created in above step
###Optional To make page as a home page
- In
qa-config.php
file copy code from this Gistqa-config.php
code and paste into yourqa-config.php
file as metnioned.
To add navigation menu
- Go to
Admin > Pages
click onAdd Link
button - Set Text/Lable in
Text of link
- Position as you want
- Visibility as you want
- Url of link you can only place page slug. for example
your-page
this is relative url. Or you can add absolute url byhttp://your-site.com/your-page