remove side bar from 1 page (4 posts)

  1. halo117
    Posted 6 years ago #

    Hi I am looking to remove the side bar from one page one my blog.
    And I got it of with the help of this thread here
    But i cant get the page to widen out to fill the side bar.

    if you look at my blog you will see what I am talking about
    the google search page gets cut off any help would be great. Thanks

  2. chaoskaizer
    Posted 6 years ago #

    if you are using WP 2.5 or later you can try the following ↓ place the code inside your theme's function.php.

    function wpi_custom_page_styles(){
     // http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page
     $pid = 'refi-google-search'; 
     if (is_page($pid) ): ?>
    <style type="text/css">
     /* full width 926px + 25px (left &amp; right) padding */
     #content{ width: 901px }
    <?php endif; } ?>
  3. halo117
    Posted 6 years ago #

    It didnt work it jack my stuff up bad. I had to reload the function file.
    Maybe i put it in the wrong spot I put it at the bottom just before the close tag.

  4. chaoskaizer
    Posted 6 years ago #

    try place it after the closing PHP tag ?>.

Topic Closed

This topic has been closed to new replies.

About this Topic