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 »

How to configure different sidebars to pages


  #1  
Old Jul 1, 2010, 12:51 AM
Stingraynut
 
24 posts · Apr 2010
Cairns Australia
The 'exclude sidebar from pages' option is not working for me.

I want different left, inner left, right and inner right sidebars on different pages.

I'm using a custom home page template called 'Landing' which diverts on clicking the menu to the page selected in the menu -

Quote:
ATAHUALPA different headers on different pages

Make a page template FROM INDEX.PHP - landing php

FROM THE TOP, REPLACE THIS ---------------------------------------------


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



WITH THIS - (alter to suit)---------------------------------------------



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



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





if (is_page('support')) {include(TEMPLATEPATH . '/support.php');}

elseif(is_page('home')) {include(TEMPLATEPATH . '/header_front.php');}

elseif(is_page('blog')) {include(TEMPLATEPATH . '/blog_header.php');}

elseif(is_page('contact')) {include(TEMPLATEPATH . '/contact_header.php');}

else {include (TEMPLATEPATH . '/header.php');}

?>
Then each custom page, like 'support' is altered, but it's only for the header - I replace this -
Quote:
REPLACE THIS ( ABOUT LINE 43) ----------------------------------
<!-- Header -->
<td id="header" colspan="<?php echo $bfa_ata['cols']; ?>">


<?php bfa_header_config($bfa_ata['configure_header']); ?>




</td>
<!-- / Header -->
with some code, text and images but that shouldn't stop the sidebars from working or am I missing something?

Website is http://allaboutweb.com.au/
  #2  
Old Jul 1, 2010, 05:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The line
HTML Code:
<td id="header" colspan="<?php echo $bfa_ata['cols']; ?>">
Is setting the stage for the 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 Jul 12, 2010, 08:13 PM
Stingraynut
 
24 posts · Apr 2010
Cairns Australia
Thanks JD, I went to add the code back to my altered pages and discovered I already have it there. My previous post was done from my notes and obviously they were'nt up to date.

This is what I have starting after head/>


<body <?php body_class(); ?><?php echo ($bfa_ata['html_inserts_body_tag'] != "" ? ' ' . apply_filters(widget_text, $bfa_ata['html_inserts_body_tag']) : ''); ?>>
<?php echo ($bfa_ata['html_inserts_body_top'] != "" ? apply_filters(widget_text, $bfa_ata['html_inserts_body_top']) : ''); ?>
<div id="wrapper">
<div id="container">



<table id="layout" border="0" cellspacing="0" cellpadding="0">
<colgroup>
<?php if ( $bfa_ata['left_col'] == "on" ) { ?><col class="colone" /><?php } ?>
<?php if ( $bfa_ata['left_col2'] == "on" ) { ?><col class="colone-inner" /><?php } ?>
<col class="coltwo" />
<?php if ( $bfa_ata['right_col2'] == "on" ) { ?><col class="colthree-inner" /><?php } ?>
<?php if ( $bfa_ata['right_col'] == "on" ) { ?><col class="colthree" /><?php } ?>
</colgroup>
<tr>




<!-- Header -->
<td id="header"colspan="<?php echo $bfa_ata['cols']; ?>">


<?php bfa_header_config($bfa_ata['configure_header']); ?>

<div id="blank"></div>
<div id="my_imagecontainer">
<div class="headbox">

<table border="0" width="100%" id="table1" height="240" cellspacing="0" cellpadding="0" style="table-layout: fixed;">

<col width="325" />
<col width="575">
<col width="200">

<tr>
<td width="325" valign="top">
<h3 align="left" style=
etc etc etc
  #4  
Old Jul 14, 2010, 06:43 PM
Stingraynut
 
24 posts · Apr 2010
Cairns Australia
Still can't get the sidebars to work properly

Bookmarks

Tags
pages, sidebars



Similar Threads
Thread Thread Starter Forum Replies Last Post
Different size sidebars/layout on different pages gaidin Sidebars & Widgets 2 Jun 27, 2010 09:57 PM
[SOLVED] Different sidebars for different pages simonelli Sidebars & Widgets 4 Jun 14, 2010 08:59 AM
Put border on pages without sidebars? kmagyarics Sidebars & Widgets 3 Oct 27, 2009 01:55 PM
[SOLVED] Sidebars don't appear on pages mlaboria Sidebars & Widgets 19 Oct 23, 2009 03:59 PM
different sidebars on different pages scacinto Sidebars & Widgets 8 Aug 7, 2009 07:57 AM


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


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