Forums

Removing sidebar from a single page (6 posts)

  1. Alberts2
    Member
    Posted 2 years ago #

    Hello. My blog is http://gainmuscleshop.com
    and I really would like to know how can I remove the second column - the sidebar from just the "Forums" page.

    I am quite certain that would expand my actual forum, showing it much wider, since there will be just one column...

    Please help me on this,

    Thanks.

  2. kiano.ro
    Member
    Posted 2 years ago #

    go to your admin panel -> appearance -> editor -> page template (page.php) -> remove from this <div class="sidebar1"> to </div> until footer.

  3. Peter Boosten
    Member
    Posted 2 years ago #

    That all depends a little bit on how your site (=theme) has been organized:

    if 'Forum' is the only page in your site, then all it takes is to edit page.php, and style your css accordingly.

    If you have more pages, then you will have to create either a forums.php to get that same result, or create a page template to remove that sidebar.

    Peter

  4. Alberts2
    Member
    Posted 2 years ago #

    I made a page template, created a page, put a forum script there, copied the script to my template from page.php and removed this part:

    <div class="sidebar1">
    <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
    </div>

    Sidebar seems to be removed, but the actual page content - the forum stays the same width as it is for all the pages. I am quite confused about what I have to do now to expand it and make it appear like the whole page wide...?

  5. alchymyth
    The Sweeper
    Posted 2 years ago #

    there is a style for .content-wide already in the style.css of the theme:

    .contentLayout .content-wide
    {
    	position: relative;
    	margin: 0;
    	padding: 0;
    	border: 0;
    	float: left;
    	overflow: hidden;
    	width: 873px;
    }

    find the following in your 'forum.php' (or whatever the name of your file is):

    <div class="contentLayout">
    <div class="content">

    and change 'content' into 'content-wide'.

  6. tanyaharvey
    Member
    Posted 1 year ago #

    I had exactly the same problem. After several hours of messing around with the CSS files, trying suggestions from many different pages, this is exactly what I needed. My theme is set up exactly the same way. Fixed perfectly in a matter of seconds. Thank you, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic