WordPress.org

Ready to get started?Download WordPress

Forums

remove side bar from 1 page (4 posts)

  1. halo117
    Member
    Posted 5 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
    Member
    Posted 5 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.

    <?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; } ?>
  3. halo117
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

    try place it after the closing PHP tag ?>.

Topic Closed

This topic has been closed to new replies.

About this Topic