Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

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


  #1  
Old Aug 5, 2010, 09:46 AM
Tesha
 
26 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
why not just exclude the page in the option at ato->Style & configure SIDEBARS
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 6, 2010, 01:25 PM
Tesha
 
26 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Aug 9, 2010 at 08:04 AM.
  #5  
Old Aug 9, 2010, 06:45 AM
Tesha
 
26 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 04:09 PM.


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