Add extra sidebar, that doenst show


Author Message
Jeroen Stoker

Posted: 2/13/2009
Quote message 

I would like to change the sidebar (with different widgets) on different pages. Using a 2 collum website like this:

HOME | NEWS | EDIT | SERVICES | CONTACT

header <sidebar1 here>



With that i mean, when i create a static page in wordpress called PEOPLE i would like to have a sidebar with Catagories, Some pictures, and the adress.

Then i have a page called EDIT, there i would like to have a different sitebar (sidebar2) with some text, links and a youtube movie.

When i click the page called SERVICES i would like it to show a sidebar3 with some text, youtube movie, linked pictures etc.

I would like 3 different sidesbars showed up on three different pages...

Please can somebody help me out!!
 
Jeroen Stoker

Posted: 2/13/2009
Quote message 

In page.php this code loades sidebar1.php

<div class="sidebar1">

<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>

</div>

Can i delete it from the page.php and add it myself in a post like in (HTML EDITOR)

SERVICES
blabblabllbalbalba
fda
afd
dfasfd
f
d

<img> <img> etc.


<div class="sidebar2">
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>





 
Jeroen Stoker

Posted: 2/13/2009
Quote message 

And offcourse count the </div> tags and add them aswell? Do they need to be in right order?
 
Dan E.

Posted: 2/13/2009
Quote message 

What you are asking for is way beyond the scope of this forum.

I can do it for a fee, contact me here:

http://go2.vg/Highrock

Dan
 
Marc Smith

Posted: 2/13/2009
Quote message 

Go to the Wordpress site and read up on Conditional Tags.
 
Bob Keen

Posted: 2/13/2009
Quote message 

Yes, you can delete those lines of code

... BUT ....

it would be best to leave them where they are and instead add whatever HTML and/or PHP you in the file sidebar.php.

You can them comment out whatever part of the defaults you do not want. Make sure you use the same <div> that are in sidebar.php when you add your own code.

Good luck!

 
Jeroen Stoker

Posted: 2/17/2009
Quote message 

:-) :-) :-) :-) :-) :-) :-) :-)
Thanks for your reply's, i fixed it myself.
I know actionscript, but didnt know php. Its quiet the same.... :-).

I Created some if, and ifelse and else statemenst... in the page.php.
Added some sidebars like sidebar2.php sidbar3.php etc.
Changed the funtions.php (amount of sidebars)

Afterall, it was quite easy, thoug thank for your support!