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 » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] I need a page template with no sidebars.


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 Aug 5, 2010, 09:46 AM
Tesha
 
10 posts · May 2010
I know we can define which pages get excluded, but this site will be used by admin folks who I would not like going into the config area - if you know what I mean....

Anyway, the index.php is easy enough to add things to, but to remove something that's buried in the bfa_get_options like the sidebar info is just not do-able, at least for me.

Is it possible to add an "exclude" line to this line from the index.php

<?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header(); ?>


that will make the new template appear to have been listed as excluded in the Options area?

thanks,

Last edited by Tesha; Aug 5, 2010 at 09:54 AM.
  #2  
Old Aug 5, 2010, 03:15 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
why not just exclude the page in the option at ato->Style & configure SIDEBARS
  #3  
Old Aug 6, 2010, 01:25 PM
Tesha
 
10 posts · May 2010
So many pages are now being listed on the no-sidebar areas...

So it's getting messy, and the admin folks for this non-profit change often.
Training is going to be an issue and I'd like to keep the folks away from that big red button at the bottom of every settings page.

Know what I mean?
  #4  
Old Aug 6, 2010, 01:54 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
ok, here is what you do. 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 chang OFF to ON for any of the sidebars and create other templates as needed.

Last edited by juggledad; Aug 9, 2010 at 08:04 AM.
  #5  
Old Aug 9, 2010, 06:45 AM
Tesha
 
10 posts · May 2010
You ROCK JuggleDad - you are the BEST ever...

Not only did you give us a working "no sidebar" page, but you even included the name it would use and the option to make further pages with other mixed options.

My non-profit thanks you - with another contribution as soon as the funding comes through!


Thank you - thank you - thank you!

Bookmarks

Tags
no sidebars

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert Atahualpa 3 columns template into 2 colums template? phboujon Page & Category Menu Bars 3 Jun 7, 2010 04:05 AM
Create a Page Template that displays Only One Page Menu Item treeplant Page & Category Menu Bars 0 Apr 20, 2010 02:41 AM
[SOLVED] Page Menu Bar on a page template Jelskedei Page & Category Menu Bars 1 Feb 22, 2010 05:35 AM
Customize text template as setting in ATO>>Sidebars & Widgets>>Style Widget bigliettaio Sidebars & Widgets 4 Jan 17, 2010 02:18 PM
New Template Page Axon Atahualpa 3 Wordpress theme 1 Feb 8, 2009 01:34 PM


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


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