Custom Blog Page Sidebars & CSS
-
Hello there!
I have two questions that I’m hoping to receive some help with. I am running the latest version of WordPress, and the Pandora theme.
First, I’m just trying to figure out how to apply my theme’s CSS styling to a custom sidebar that I’m using on most pages on my site. You can see the sidebar looks great here:
http://coreychandler.net/wordpress/?page_id=62
…but when I use the custom one, it looks horrible:
http://coreychandler.net/wordpress/?page_id=39
Do you know how I can ensure that my theme’s CSS styling is being applied to my custom sidebar? Here is how I’m invoking it:
In page.php:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar2') ) : ?> <?php endif; ?>In fuctions.php:
if(function_exists('register_sidebar')) { register_sidebar(array( 'name' => __('Sidebar'), 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); register_sidebar(array( 'name' => __('Sidebar2'), 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>', ));Any thoughts?
My second question is this: I’ve managed to do a workaround so get my Blog page to show the sidebar I want, but in reality what I’d really like to do is point it to a template that will invoke the appropriate sidebar. For some reason, however, the blog page seems to insist in invoking the site’s default “Sidebar,” even though the template is telling it not too. Do you know why this is?
Thanks so much in advance, and please let me know if I need to provide any more clarification.
The topic ‘Custom Blog Page Sidebars & CSS’ is closed to new replies.