Mulitple Sidebar Issues
-
Can someone please help me with my sidebar issues. I can’t get any of them to display at all. I’ve read every tutorial out there and I have no idea what I’m missing here. Here is my functions code.
<?php include( TEMPLATEPATH.'/constants.php' ); include( TEMPLATEPATH.'/classes.php' ); include( TEMPLATEPATH.'/widgets.php' ); /** * Disable automatic general feed link outputting. */ automatic_feed_links( false ); //remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'wp_generator'); if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Default sidebar', 'before_widget' => '<div class="list-info %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3>', 'after_title' => '</h3>' )); register_sidebar(array( 'name' => 'Home bottom sidebar', 'before_widget' => '<div class="%2$s">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>' )); } function kantar_style_tweets($output){ return apply_filters('the_content',$output); } add_filter('aktt_tweet_display','kantar_style_tweets'); add_theme_support('post-thumbnails'); ?>
Here is the code inside Default Sidebar (sidebar.php)
<div class="sidebar"> <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Default sidebar’) ) : ?> <?php endif; ?> </div>
Here is the code inside of ‘Home bottom sidebar’ (sidebar-home.php)
<div class="inform-holder"> <div class="inform"> <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Home bottom sidebar’) ) : ?> <?php endif; ?> </div> </div>
I am properly calling them in the places they need to be by using
<?php get_sidebar('home'); ?>
and<?php get_sidebar(); ?>
I’m also trying to add a 3rd sidebar but I’d like to get these atleast showing up first.
I’m banging my head on the wall about this. Any help is appreciated! Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Mulitple Sidebar Issues’ is closed to new replies.