• page.php

    <?php if (pagename == 'home') {
    include('front-page.php');
    } else if (pagename == 'about') {
    include('page-about.php');
    } else if (pagename == 'news') {
    include('page-news.php');
    } else if (pagename == 'published-books') {
    include('page-published-books.php');
    } else if (pagename == 'practice-area') {
    include('page-practice-area.php');
    } else if (pagename == 'contact') {
    include('contact.php');
    } else if (pagename == 'vision') {
    include('about-vision.php');
    } else {
    include('contact.php');
    }
    
    //page2.php for standard page
    
    ?>

    1) About is the parent of Vision. How to write the if conditional ?

    This : pagename == ‘vision’ does not work. The url should be:https://ocklaw.com/new/about/vision

    2) Is it possible to write a new page without showing it on the top navigation ? I would like like that page to be linked by a custom side navigation.

    Ocklaw About Navigation

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extra Custom Page’ is closed to new replies.