Forums

Removing sidebar from a single page (5 posts)

  1. Alberts2
    Member
    Posted 2 weeks 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 weeks ago #

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

  3. pboosten
    Member
    Posted 2 weeks 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 weeks 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
    Member
    Posted 2 weeks 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'.

Reply

You must log in to post.

About this Topic