Support Forum

Where to find a guide or info on how to remove the sidebar from Forum Page ?

MJ Mikael Jaderberg
Mikael Jaderberg
Member

Hi,

I asked all in the title, how do I get rid of the sidebar and get a full width forum ?

I am sure someone here must have done it before and guess it is not a very difficult procedure once known ?

I used the search function but couldnt find any information about it.

Thanks

7 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Answered in the other thread. If your theme doesnlt have a full page template – by the way – it is relatively easy to make one and we can point you to a tutorial.

MJ Mikael Jaderberg
Mikael Jaderberg
Member

Yes please, a tutorial would be interesting laugh

YS Yellow Swordfish
Yellow Swordfish
Member

This WP Codex article covers what it means. basically you would need to make a copy of your page.php template – remove the call to display the sidebar – and add the special header as detailed in the article:

http://codex.wordpress.org/Pages

MJ Mikael Jaderberg
Mikael Jaderberg
Member

In my below post I used code and information from:

http://www.expand2web.com/blog/wordpress-custom-page-template-no-sidebars/

 

I found this code to make a no sidebar template:

<?php
/*
Template Name: No Sidebar
*/
?>

<?php get_header(); ?>

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div style="width:850px !important;">

<?php the_content('

Read the rest of this page »</p>’); ?> <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?> <?php endwhile; else: ?> <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p> <?php endif; ?> </div> </div> <?php get_footer(); ?>

That made it almost perfect except that the forum wasnt centered on the page.

I thought I should add:

<DIV ALIGN=CENTER> at the top and </DIV> at the end.

I thought I made it when I found out that:

1. the top navigaion menu was completely gone

2. ALL the text in the forum was centered ( forum topics, the texts in posts….)

ALL-TEXT-IN-THE-MIDDLE.JPG

 

3. The text resizer (AAA) was black against my grey background, above outside the forum “wrapper/body”

AAAA.JPG

4. It looked weird in Explorer.

MP Mr Papa
Mr Papa
Member

well, dont add the div align=center… that will cause everything to get aligned center…  if you want to just center the content, add it to the save div as the width you did…

for the top navigation, you will need to find out how your theme does it…  look at page.php of your theme (if it has one)…

when creating a custom page template, I find it easier to start by copying page.php (or whateve the default page template is in your theme) and then removing/adding what I want…

MJ Mikael Jaderberg
Mikael Jaderberg
Member

Aha, I got it. Thats what I will do ofcourse. Copy the default template, rename it and find the sidebar in codeform.

I dont really know what the heck I am doing though. Its just a puzzle for me. Thanks for your answer.

MP Mr Papa
Mr Papa
Member

Give it a shot and come on back if you have issues….