extra sidebar
Hi,
I need to add extra side bars i got some help as shown below but it doesn't work please help, am thinking its a problem with the second instruction where it says copy the (single listing php) to your child theme. I need an extra sidebar on the single listing page 1.beneath the (Listed in categories) 2.beneath the (reviews section). please help.
Warm regards
1) In functions.php add the following code:
function mh_widgets_init() {
register_sidebar( array(
'name' => 'Reviews Sidebar',
'id' => 'sidebar-reviews',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
'after_title' => '',
) );
}
add_action( 'widgets_init', 'mh_widgets_init' );
2) From the main ../themes/vantage/ directory copy the file single-listing.php to your child theme folder. Towards the bottom of this is a line containing the following:
</article>
Just above that line copy paste this code:
<?php dynamic_sidebar('sidebar-reviews'); ?>