• I’ve been reading another topic that gives me some information but not all that I need. The Topic I’ve been reading is here.

    I’m using the i3theme which is a 3 column theme.

    I want to have a 2 column page and eleminate the left-sidebar.

    The call for the left-sidebar is in the Header Template.
    <?php include_once("sidebar-left.php"); ?>

    I can’t eliminate this code or change the Header Template or it changes everything. I just want to change the template for the Pages.

    The Page Template calls for the Header:
    <?php get_header(); ?>
    and the CSS that manages the width:
    <div id="content">

    Here is what I’ve done:
    I’ve added a section to the StyleSheet called “pagecontent” which has the new dimensions for my two-column page.

    I’ve created a new Header Template in which I’ve taken out the command for the left side-bar. I’ve named the Template: altheader.
    I’ve created a new Page Template called “altpage” which points to
    (1) The New Header <?php get_altheader(); ?>
    and
    (2)the new page content: <div id="pagecontent">

    I’ve created my page and pointed it to the “altpage” template. Now when I click on the link from my front page I get an error message that says it can’t find “altheader”.

    Does any of this make sense?
    Can someone help me please?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • <?php get_altheader(); ?>
    You cannot use that line – there is no such function defined in the WP core files; get_header is a WP function, that’s why it works.

    You should use something like (provided the new template files are in the theme directory)
    <?php include (TEMPLATEPATH . '/your-file-here.php'); ?>

    Thread Starter Jabbok

    (@jabbok)

    OK. I read something about that and I was wondering if that was what I was doing wrong but I didn’t understand, fully, how to create the path like you gave there.

    Thanks alot. I’ll go and try it.

    Don’t change anything in it – except your filename!

    Thread Starter Jabbok

    (@jabbok)

    Can someone please look at my page and give me a clue as to how I can make the title bar expand to the edge of the content section?

    Thanks.

    Make that bg image longer…

    Thread Starter Jabbok

    (@jabbok)

    That was it!

    Thank you very much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using Different Page Templates’ is closed to new replies.