Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Styling (http://forum.bytesforall.com/forumdisplay.php?f=41)
-   -   How do I create a No Sidebar page template? (http://forum.bytesforall.com/showthread.php?t=10672)

lmilesw Oct 25, 2010 12:45 PM

How do I create a No Sidebar page template?
 
Make a copy of index.php and call it nosidebar.php
edit nosidebar.php and replace lines 1-5 with the following:
HTML Code:

<?php
/*
Template Name: nosidebar
*/
 ?>

<?php // Do not delete these lines ?>
<?php    /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
global $bfa_ata;

$left_col ="off";
$left_col2 = "off";
$right_col2 = "off";
$right_col = "off";
   
get_header(); ?>

save it and put it in the atahualpa theme folder (the folder that index.php is in)
Use the template on the page you want.

You could easily change OFF to ON for any of the sidebars and create other templates as needed.


All times are GMT -6. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.