• Hi guys, I want a clean page without comments and sidebar for ” About me ” and ” Contact ” pages of my site. After reading some articles, i realised that
    i had to create a new page template. Copying index.php file and tried to modify and save it as a page.php. Everything was just fine. Comments option was gone.. but i cant remove sidebar section . Because i cant find nothing about sidebar in my page.php. Can you guys please help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The sidebar is most likely called via get_sidebar(). Remove that bit, if present.

    Thread Starter creobic

    (@creobic)

    Here it is my page.php

    <?php
    get_header();
    ?>

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

    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark”><?php the_title(); ?></h3>

    <div class=”storycontent”>
    <?php the_content(__(‘(more…)’)); ?>
    </div>

    <!–
    <?php trackback_rdf(); ?>
    –>

    </div>

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    <?php get_footer(); ?>

    Look in your template’s footer.php for the get_sidebar line mentioned above. Might be hiding in there.

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