Removing the sidebar from just 1 WP page

5 replies
  • WEB DESIGN
  • |
Hello,

I am wanting to have just one page on my site (blog) where the sidebar does not show up.

I need the sidebar, just not on this one page. I can do very little theme customizing but this has baffled me so I'm turning to my fellow Warriors for some guidance.

Here is the page in question:
ThePLRFactory.com/forum

Any help you can send my way will be greatly appreciated.

Thank you very much.
#customize theme #page #removing #sidebar #wordpress blog themes
  • Profile picture of the author edynas
    Banned
    Hi Steve,

    You can make a page template and use that for this page. In that template you don't use the sidebar and style it just the way you like it.

    If you want I can do this for you for a very low fee. pm me if interested

    Edwin
    {{ DiscussionBoard.errors[1303260].message }}
  • Profile picture of the author awesometbn
    I use a conditional PHP statement on the main theme files. It checks to see what page is being loaded and executes different options for the layout of the page. Below is an example code fragment from a header.php file that changes based on the page.

    PHP Code:
    <? if(eregi('index.php',$_SERVER['PHP_SELF'])){ ?>
    <div class="headb"><a href="order-today.php"><img src="images/headb.gif" border="0" /></a></div>
    <? } else { ?>
    <div class="headb"><a href="index.php"><img src="images/headbIn.gif" border="0" /></a></div>
    <? } ?></div>
    <div id="#page">
    <div class="mpage">
    <? if(eregi('index.php',$_SERVER['PHP_SELF'])){ ?>
    <? } else { ?>
    <div class="mpLeft">

    Insert advertising section here

    <? } ?>
    Basically you can create "if-then" scenarios and really get creative. No need for creating clones of the same page with minor changes. From a programming perspective you have all of the available options listed on the same page, and the PHP code picks certain sections to hide or display. Kind of cool when it works correctly.
    {{ DiscussionBoard.errors[1303423].message }}
  • Profile picture of the author edynas
    Banned
    I have send you a pm where I pinpoint the problem and the solution. It's a div with a fixed width that's causing it.

    Hope it helps

    Edwin
    {{ DiscussionBoard.errors[1304682].message }}

Trending Topics