Results 1 to 1 of 1

Thread: extra sidebar

  1. #1
    Thread Starter
    questkev's Avatar
    Join Date
    Aug 2013
    Location
    Kenya
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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'); ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Feature request: Show banners on the sidebar/Sidebar placement
    By mdehaan in forum Banners Galore ClassiPress
    Replies: 3
    Last Post: January 11th, 2014, 11:48 PM
  2. Need to ad extra picture for extra field
    By casa in forum ClassiPress General Discussion
    Replies: 2
    Last Post: February 2nd, 2012, 01:07 PM
  3. extra sidebar possible?
    By chifen in forum ClassiPress General Discussion
    Replies: 0
    Last Post: April 16th, 2010, 08:41 AM
  4. How do I add an extra widget?
    By pjeaje in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 06:00 PM