WordPress.org

Support

Support » Themes and Templates » remove side bar from 1 page

remove side bar from 1 page

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • if you are using WP 2.5 or later you can try the following ↓ place the code inside your theme’s function.php.

    <?php
    add_action('wp_head','wpi_custom_page_styles',11);
    
    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 }
    </style>
    <?php endif; } ?>

    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.

    try place it after the closing PHP tag ?>.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove side bar from 1 page’ is closed to new replies.