Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Where to find a guide or info on how to remove the sidebar from Forum Page ?
Avatar
Mikael Jaderberg
Member
Free Members
sp_UserOfflineSmall Offline
Aug 1, 2012 - 12:58 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 1, 2012 - 2:07 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mikael Jaderberg
Member
Free Members
sp_UserOfflineSmall Offline
Aug 1, 2012 - 2:16 pm

Yes please, a tutorial would be interesting laugh

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 1, 2012 - 2:41 pm

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mikael Jaderberg
Member
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2012 - 2:57 pm

In my below post I used code and information from:

http://www.expand2web.com/blog.....-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.JPGImage Enlarger

 

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

AAAA.JPGImage Enlarger

4. It looked weird in Explorer.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2012 - 8:42 pm

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...

Avatar
Mikael Jaderberg
Member
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2012 - 9:39 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2012 - 9:48 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626