Creating a new page (4 posts)

  1. creobic
    Posted 11 years ago #

    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.

  2. skippy
    Posted 11 years ago #

    The sidebar is most likely called via get_sidebar(). Remove that bit, if present.

  3. creobic
    Posted 11 years ago #

    Here it is my page.php


    <?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...)')); ?>

    <?php trackback_rdf(); ?>


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

    <?php get_footer(); ?>

  4. Xyth
    Posted 11 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.