Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » FAQ - Atahualpa » Styling »

How do I create a No Sidebar page template?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 25, 2010, 12:45 PM
lmilesw's Avatar
lmilesw
 
10,087 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a No Sidebar page template? lmilesw General 0 Oct 25, 2010 12:45 PM
Create a Page Template that displays Only One Page Menu Item treeplant Page & Category Menu Bars 0 Apr 20, 2010 02:41 AM
[SOLVED] how to create a page template? drongo Center area post/pages 15 Jan 1, 2010 01:37 PM
How do I create a new page template? JakeThePeg Page & Category Menu Bars 10 Sep 7, 2009 10:33 AM


All times are GMT -6. The time now is 10:15 AM.


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