• Closed
  • Bob Prentice
    Spectator
    May 28, 2015 at 1:11 pm #17804

    I realise that this question is undoubtedly byond the scope of this help forum but I was hoping if there is a quick/simple answer that someone would be kind enough to give it.

    I am trying to use the header and footer for Alora in on an external page. I followed the instructions given by WP and am using the code given below. Everything is fine EXCEPT there is no navigation. It looks like the j=holders are there but nothing in them.

    <!DOCTYPE html>
    <html lang="en-GB">
    <head>
    <title>Test</title>

    <?php
    // turn off WordPress themes and include the WordPress core:
    define('WP_USE_THEMES', false);
    require('../wp-load.php'); ?>
    </head>

    <body>
    <?php
    // Template Name: Contact
    get_header(); global $data; ?>

    This is a test

    <?php get_footer(); ?>
    </body>
    </html>

    This is what I am seeing in the nav bit of the source

    </header>
    <div id="small-nav">
    <div class="alora-row">
    <nav id="nav" class="nav-holder">
    <ul class="navigation menu t4p-navbar-nav">
    </ul>
    </nav>

    <div class="mobile-nav-holder main-menu"></div>
    </div>
    </div>
    </div> <div class="init-sticky-header"></div>
    </div>

    <div id="sliders-container">

    </div>

    I’ve been struggling with this for a week so if anyone could say anthing to point me in the correct direction I would be most grateful.

    Denzel Chia
    Moderator
    Posts: 2656
    May 28, 2015 at 3:42 pm #17808

    Hi,

    I assume that you are trying to create a page template.
    You can start by duplicating blank.php
    This is the simplest template in Alora Theme.

    Make a copy of blank.php and rename it to something like custom_blank.php and change the template name from Blank Page to Custom Blank and you will have a new page template. The name Custom Blank will appear in the page template selection in your WordPress admin -> Add Page.

    Experiment with it, and if you encounter any PHP fatal error, which results in a blank page, you can use FTP to delete custom_blank.php and start over again.

    I am sorry, this is all the information I can provide.
    If you need further assistance, you can hire a developer by putting up a posting on http://jobs.wordpress.net/

    Thanks!
    Denzel

    Bob Prentice
    Spectator
    Posts: 6
    May 28, 2015 at 6:32 pm #17810

    Sorry I didn’t really make myself clear. As I said in the first post I am trying to do this on an external page, not a wordpress page. It’s actually a sub folder of the domain when WordPress is the root of the domain.

    The code given by WordPress (as above) works fine with all other themes I have tried it with but for some reason when its used with the Alora theme the Navigation wont show, the rest of the Header and Footer show fine.

    What I am asking is what could be the difference between the way Alora works and other themes work to cause this problem.