halo117
Member
Posted 7 months 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
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 & right) padding */
#content{ width: 901px }
</style>
<?php endif; } ?>
halo117
Member
Posted 7 months 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.
try place it after the closing PHP tag ?>.