Forums

[request] How to hide sidebar.php on a particular page? (3 posts)

  1. stranded
    Member
    Posted 2 years ago #

    Hey!

    I'm using the famous Compositio theme and I cannot seem to hide the sidebar.php (in any easy, known way) from my brand new forums:

    http://steamunpowered.eu/forums/

    Could anyone give me a hint? I have created a page template but this theme is forcing the damn sidebar every time the page loads. I can move it around by removing some stuff from the page code but I cannot hide it on this particular page.

  2. Samuel B
    moderator
    Posted 2 years ago #

    did you do it like this?
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    if you leave out the sidebar call it will work

  3. stranded
    Member
    Posted 2 years ago #

    With this theme default page.php looks like this:

    <?php get_header(); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
     <div class="p-head">
      <h1><?php the_title(); ?></h1>
     </div>
    <div class="p-con">
    <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    </div>
    <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    </div>
    
    <?php if ( comments_open() ) comments_template(); ?>
    <?php endwhile; endif; ?>
    <?php edit_post_link('Edit this entry.', '<p class="edit">', '</p>'); ?>
    
    <?php get_footer(); ?>

    And making a new page template like for example "Forum" (forum.php) doesn't seem to work, if I remove any part (well almost) of the page.php code the site is just blank and nothing loads.

    ;/
    And as you see the "get_sidebar" isn't even there.

Topic Closed

This topic has been closed to new replies.

About this Topic