Additional Sidebar Issues
-
Hi there,
My blog is at https://matthewdthornton.com/blog and I am trying to use two separate sidebars. One for the main blog page which is fine (search bar, recent posts, categories and tags). However for the single post page, I want to have a sidebar without the search function. I’ve looked at sidebar.php but I only have the below code which doesn’t seem to match the actual sidebar on my site, i.e. I don’t have a calendar. I was hoping to just copy the sidebar.php file, remove the search bar widget, and then call that in singlepost.php however it seems a little more complicated than that!
<section id=”sidebar”>
<div class=”row”><?php if ( is_active_sidebar(‘side_sidebar_area’)) {
dynamic_sidebar(‘side_sidebar_area’);
} else {
the_widget( ‘WP_Widget_Calendar’,
array(“title”=> __(‘Calendar’,’wip’)),
array(‘before_widget’ => ‘<div class=”pin-article span4″><div class=”article”>’,
‘after_widget’ => ‘</div></div>’,
‘before_title’ => ‘<h3 class=”title”>’,
‘after_title’ => ‘</h3>’
)
);the_widget( ‘WP_Widget_Archives’,”,
array(‘before_widget’ => ‘<div class=”pin-article span4″><div class=”article”>’,
‘after_widget’ => ‘</div></div>’,
‘before_title’ => ‘<h3 class=”title”>’,
‘after_title’ => ‘</h3>’
)
);the_widget( ‘WP_Widget_Categories’,”,
array(‘before_widget’ => ‘<div class=”pin-article span4″><div class=”article”>’,
‘after_widget’ => ‘</div></div>’,
‘before_title’ => ‘<h3 class=”title”>’,
‘after_title’ => ‘</h3>’
)
);} ?>
</div>
</section>Thanks for any help in advance!
Matthew
- The topic ‘Additional Sidebar Issues’ is closed to new replies.