Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   How to configure different sidebars to pages (http://forum.bytesforall.com/showthread.php?t=7876)

Stingraynut Jun 30, 2010 11:51 PM

How to configure different sidebars to pages
 
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/

juggledad Jul 1, 2010 04:38 AM

The line
HTML Code:

<td id="header" colspan="<?php echo $bfa_ata['cols']; ?>">
Is setting the stage for the sidebars

Stingraynut Jul 12, 2010 07:13 PM

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

Stingraynut Jul 14, 2010 05:43 PM

Still can't get the sidebars to work properly


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

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