Box of Boom
Deleting a sidebar (6 posts)

  1. caitlinstangelo
    Posted 3 years ago #

    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!

  2. WPThemes.co.nz
    Posted 3 years ago #


    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 http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

  3. juanstecno
    Posted 3 years ago #

    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.

  4. WPThemes.co.nz
    Posted 3 years ago #

    Glad it did Juan. Thank you for the suggestion.

  5. caitlinstangelo
    Posted 3 years ago #

    Success! Thank you both!

  6. juanstecno
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.