Additional Sidebars not matching ‘look’ of website
-
Ok, first, I’m new to php and css, but I do have code experience, so can pick it up pretty quickly hopefully. I have been able to get a second sidebar, that will appear for a different page.
I changed
if ( function_exists( 'register_sidebars' ) ) { register_sidebar();
to
if ( function_exists( 'register_sidebars' ) ) { register_sidebars(2);
in functions.php
and created a copy of sidebar.php called sidebar-wow.php, changing it’s id accordingly
Finally, I changed
<?php include ('sidebar.php');?>
to
<?php if (is_page('wow')) { include ('sidebar-wow.php'); } else{ include ('sidebar.php'); } ?>
in my page.php.
Now, this gives me the additional sidebar to add widgets too and what not. It also displays this new sidebar when I goto my wow page. However, the sidebar itself does not have the ‘look’ of my current theme. I’m assuming this is because sidebar-wow.php does not have the css applied to it? I’ve did some grepping, but am unsure where I’m suppose to reference my sidebar-wow to get the same look?
To see what I’m talking about, visit jeffwithag.com and notice the sidebar differences between home(or geoff) page and the wow page. When I say differences I mean text coloring, font, centering, and not content. I want the content to be different, but I want the look and feel to be the same.
Can anyone help?
Thanks,
Geoff
- The topic ‘Additional Sidebars not matching ‘look’ of website’ is closed to new replies.