Add New Website Pages

Million Dollar Script Forums Feature Requests Add New Website Pages

This topic contains 2 replies, has 2 voices, and was last updated by  Gary Littlemore 3 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #2222

    Gary Littlemore

    I’d like to be able to add custom pages from within the admin area giving an option of naming the page, putting what I require on the page either in HTML code or using a WYSIWYG editor and the system adding the page also adding a new tab at the top for the named page.

    How do I go about adding a new page to the site at the moment? I’m looking to add a Terms & Conditions page.



    You would have to create a new file in the root of the install and edit the header.php and add a link to it in the menu (near the bottom of the file). The file could be a regular HTML file but if you want it to have the same header and footer as the rest of the site you could make it a php file and include the header and footer files.

    I’ll try to show some example code here but not sure how well it will display on these forums.


    <?php require_once('html/header.php'); ?>
    <h2>Terms and Conditions</h2>
    Your terms and conditions.
    <?php require_once('html/footer.php'); ?>
    • This reply was modified 3 years ago by  Ryan.
    • This reply was modified 3 years ago by  Ryan.

    Gary Littlemore

    Great, thanks Ryan I’ll give it ago.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.