New Topic

Reply To: Two right sidebars

Home › Forum › Customization › Two right sidebars › Reply To: Two right sidebars

#660

StartupWP
Support

It’s no different than setting the template in pages. It may seem tedious now if you have a lot of posts, but easy in the future when preparing new posts. We’ll definitely be looking into a global option in the future as well.

Now, for the homepage:

1. Setup a child theme:

https://startupwp.com/topic/child-theming/

2. Copy index.php over from the parent theme to the child theme.

3. Find this line and remove it:

<?php get_sidebar(); ?>

and then add this code, right below <?php get_header(); ?>:

<div id="lsidebar-sidebar">
<?php if ( is_active_sidebar("lsidebar-widget-area") ) : ?>
<div id="lsidebar" class="widget-area">
<ul class="sid">
<?php dynamic_sidebar("lsidebar-widget-area"); ?>
</ul>
<div class="clear"></div>
</div>
<?php endif; ?>
</div>

4. Add to your CSS:

#lsidebar-sidebar {
margin: 0 0 0 2%;
width: 30%;
}

https://startupwp.com/topic/customizing-your-theme/

Please note that the homepage sidebar content will now be controlled by the Left Sidebar area under Appearance > Widgets.

The Easy Way

Now that the process had been explained, you can simply download, install and activate the child theme we’ve prepared for you like any normal theme under Appearance > Themes to apply the customizations:

startuppro-child(sidebar-left-posts-page)