Viewing 3 replies - 1 through 3 (of 3 total)
  • You will need to go through the template files and remove any instances of <?php get_footer(); ?> you may also need to edit css for the content area to use the extra space.

    I was able to remove sidebar and stretch content to full width for all pages (but not posts) by adding this to the style.css file

    .fullwidth {
    float: left;
    margin 0;
    padding: 0;
    width: 100%;
    }

    On page.php change this

    <div id=”content” class=”narrowcolumn” role=”main”>
    to this

    <?php if (is_page()) : ?>
    <div id=”content” class=”fullwidth” role=”main”>
    <?php else : ?>
    <div id=”content” class=”narrowcolumn” role=”main”>
    <?php endif; ?>

    AND change <?php get_sidebar(); ?>

    to this

    <?php if (is_page()) : ?>
    <?php else : ?>
    <?php get_sidebar(); ?>
    <?php endif; ?>

    Visit my test site at https://qcretreat.lifesites.com.au/blog/?page_id=16

    change this <?php if (is_page()) : ?> to <?php if (is_page() || is_single()) : ?>.

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