Support » Theme: Box of Boom » Deleting a sidebar

  • caitlinstangelo


    Trying to delete the left side bar, and increase the main posting area to utilize the increased space. Tinkering, but not having any luck. Any ideas? Loving the theme otherwise! Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)



    You can try editing the index.php file, single.php and page.php file and removing or commenting out the code that calls the left sidebar. On the index.php file, this is on line#45.

    <?php get_sidebar('left'); // left sidebar ?>

    Then, you need to change the class for the #main div from col480 to col700

    One thing though, modifying the code directly to a parent theme – such as this one – is not advisable because an update to the theme would wipe out your modifications. Instead, best practice would be to create a child theme off of the parent theme.

    Here is a guide for creating child themes in WordPress

    Hi, I think you can do one thing more easy. You can create a new sidebar template page, like this:
    * Template Name: Right sidebar page
    * Description: Right sidebar template
    get_header(); ?>

    <div id=”content” class=”clearfix”>

    <div id=”main” class=”col700 clearfix” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php comments_template( ”, true ); ?>

    <?php endwhile; // end of the loop. ?>

    </div> <!– end #main –>

    <?php get_sidebar(); // sidebar 1 ?>

    </div> <!– end #content –>

    <?php get_footer(); ?>’
    This worked for me.

    Glad it did Juan. Thank you for the suggestion.

    Success! Thank you both!

    Will be incorporated in future updates more options theme page template and entry besides the two default?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deleting a sidebar’ is closed to new replies.