Adding sidebar to only part of a page

I need to add the sidebar to the top half of a page only. The top half layout is split into 8 columns and 4 columns. 8 columns = content. 4 columns = sidebar. The bottom half is 12 columns wide with content. Using the Roots sidebar config file, I can only toggle between having a sidebar that splits the entire page, not just part of it.

I tried to use <?php get_sidebar('sidebar-primary'); ?> on the top half but this did not pull up the Primary Sidebar with my widgets. It pulled up the generic Search/Pages/Archives/Categories/Meta sidebar.

Thanks in advance!

What if you add the BOTTOMHALF content before the footer in base.php?

<?php get_template_part('templates/BOTTOMHALF'); ?>
<?php get_template_part('templates/footer'); ?>

Or inside another row into the .wrap

        </aside><!-- /.sidebar -->
      <?php endif; ?>
    </div><!-- /.content -->
    <div class="BOTTOMHALF row">
       <?php get_template_part('templates/BOTTOMHALF'); ?>
    </div>
  </div><!-- /.wrap -->
1 Like

@heitorss speaks the truth, his is a less intrusive and more viable strategy.

This works. Thanks for the guidance!