WordPress.org

Ready to get started?Download WordPress

Forums

Trying to create new page template (5 posts)

  1. jezbutler
    Member
    Posted 1 year ago #

    Hi

    If anyone can help I@ll be eternally grateful.

    I'm trying to set up a new page template; it's identcal to the standard one except for the fact that it points to a new header file I've called 'header1.php'. The only thing 've changed in the header is to substitute:

    <html <?php language_attributes(); ?>>

    for

    <html dir="ltr" lang="es">

    - as a couple of the pages on the site are in Spanish and I want to reflect this.

    To call the header into the template, I've used the following (I@ve left the comments to put it into context):

    <?php
    /**
    * Page Template
    *
    * This template is the default page template. It is used to display content when someone is viewing a
    * singular view of a page ('page' post_type) unless another page template overrules this one.
    * @link http://codex.wordpress.org/Pages
    *
    * @package WooFramework
    * @subpackage Template
    */
    ?>

    <?php include (TEMPLATEPATH . '/header1.php'); ?>

    I've placed the header1 file in the same driectory as header.php.

    The problem now is that a large chunk of my page structure disappears, notably the navigation and layout box... it's driving me up the wall, but not really being asu-fait with php, I'm stuck.

    Thanks in advance

    Jez

  2. ishan001
    Member
    Posted 1 year ago #

    Well, what's the code in header.php and header1.php That code can help in locating the problem.

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @jezbutler -- see this before posting any more code:

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    It gets messed up when you post it here without the code backticks...

  4. jezbutler
    Member
    Posted 1 year ago #

    Thanks both; sorry I'll know in future not to post code.

    Ishan: I've just noiced that the header is part of the Woo Framework, so in keeping with this forum's Wordpres-only policy, I think I should approach Woothemes.

    Cheers

    Jez

  5. ishan001
    Member
    Posted 1 year ago #

    No problems.

    Hope the problem gets solved.

Topic Closed

This topic has been closed to new replies.

About this Topic