Hi all
How do I set up a custom sidebar that gets called upon depending on the page the viewer is on?
I want a custom sidebar for about us and another custom one for what we do?
Is this possible?
Thanks for your time.
Hi all
How do I set up a custom sidebar that gets called upon depending on the page the viewer is on?
I want a custom sidebar for about us and another custom one for what we do?
Is this possible?
Thanks for your time.
read this thread and see if you get some pointers from it.
Something like this in your Page Template
if ( is_page('12') ) {
get_sidebar('example12');
} else {
get_sidebar('example22');
}
Get either sidebar-example12.php or sidebar-example22.php
See:
Function_Reference/get_sidebar
Conditional Tags
Page Template
Try to use the custom sidebars plugin, you will be able to get what you want without coding.
Cheers
thanks everyone I now have it working
This topic has been closed to new replies.