Trying to create new page template (5 posts)

  1. jezbutler
    Posted 3 years ago #


    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(); ?>>


    <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):

    * 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


  2. ishan001
    Posted 3 years ago #

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

  3. WPyogi
    Forum Moderator
    Posted 3 years ago #

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


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

  4. jezbutler
    Posted 3 years 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.



  5. ishan001
    Posted 3 years ago #

    No problems.

    Hope the problem gets solved.

Topic Closed

This topic has been closed to new replies.

About this Topic