PHP – Removing sidebars on a specific page
-
Hi guys,
I’m trying to remove both sidebars from this page pesmasterleague.com/home/mlb2 (Page ID = 2500) but I’m not too sure of the code to use. As you can see the page needs as much space (width) as possible, if I can get this working next step will be to decrease the column with and limit 20 results per page (I’m going to struggle with that big time ?? )
I read this code worked for somebody:
I removed <?php if ( !is_attachment() ) get_sidebar(); ?>
and replaced it with:
<?php if (is_front_page()) {
} else {
get_sidebar();
}
?>This was performed on my index.php script.
But I’m obviously doing something wrong as it isn’t working, any ideas?
Any help would be much appreciated, btw I’m a rookie!
Cheers,
Paul
- The topic ‘PHP – Removing sidebars on a specific page’ is closed to new replies.