1

This is probably an easy question but I'm having so much trouble figuring it out on my own.

I installed Storefront (the official Woocommerce theme) on a test server and I like it a lot, but the default front page (called Welcome) does not have a sidebar, which is a deal-breaker for me. I've been trying to add one with no luck, is this something that I'd need to do extensive template modifications to make work, or is there something easier (I'm fine with working with the PHP files and adding code and whatnot)

2 Answers 2

1

I think there's an option to include it via the customizer (appearance->themes->customize)

If not, then you might need to open up content-homepage.php and put

<?php get_sidebar(); ?>

Where you want to display the sidebar.

0

If you cant do it via customiser you should be able to set it via the template or create a new template called Home with sidebar using something like this

   <?php
/*
Template name: Page - Home with Sidebar 
*/
get_header(); ?>
<div class="row">

<div id="content" class="large-9 right col" role="main">
    <div class="page-inner">
<?php while ( have_posts() ) : the_post(); ?>

            <?php the_content(); ?>
        <?php endwhile; // end of the loop. ?>
    </div><!-- .page-inner -->
</div><!-- end #content large-9 left -->

<div class="large-3 col col-first col-divided">
<?php get_sidebar(); ?>
</div><!-- end sidebar -->

</div><!-- end row -->

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.