Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Adding Secondary Sidebar

Home / Forums / Virtue Theme / Adding Secondary Sidebar

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
February 13, 2018 at 12:08 am

Hello,

I’ve been trying to modify the Virtue theme to add a secondary sidebar to all pages that want sidebars (in the three column format: sb_left, content, sb_right). I’ve added the following to my child theme’s Functions.php
<?php
add_action( 'widgets_init', 'child_register_sidebar' );

function child_register_sidebar(){
register_sidebar(array(
'name' => __('Secondary Sidebar', 'virtue'),
'id' => 'sidebar-secondary',
'before_widget' => '<section id="%1$s" class="widget %2$s"><div class="widget-inner">',
'after_widget' => '</div></section>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}
?>

Now the problems I have are twofold.

1. How do I add a secondary sidebar to theme. The sidebar format in premium is much harder to follow, I can’t figure out the modified command I would need from
2. How to position on all sidebar pages to the left.

Can you assist?

Thanks.

p.s: temp setup is at pardon the dust.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.