Using Different Page Templates
-
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
- The topic ‘Using Different Page Templates’ is closed to new replies.