X xTreme Active Member 1,402 2010 113 0 Mar 17, 2012 #1 Hello Can any guide me to disable sidebar for certain pages and enable it for others in wordpress? Thank you
Hello Can any guide me to disable sidebar for certain pages and enable it for others in wordpress? Thank you
RT Active Member 5,314 2009 1,571 85 Mar 17, 2012 #4 Make the page manually, make a page, get the source and delete the sidebar.
A Apathetic Active Member 899 2011 241 0 Mar 17, 2012 #5 PHP: if(!is_page()){ //sidebar goes here } or you could specify the id of pages to hide it PHP: //if page id != 1, then display sidebar if(!is_page(1)){ //sidebar goes here }
PHP: if(!is_page()){ //sidebar goes here } or you could specify the id of pages to hide it PHP: //if page id != 1, then display sidebar if(!is_page(1)){ //sidebar goes here }
X xTreme Active Member 1,402 2010 113 0 Mar 17, 2012 #6 Thank you, will give a try and post the result.
D DevilLnC Active Member 361 2010 13 0 Mar 19, 2012 #7 Just Delete this and it will work fine.. Code: <?php get_sidebar(); ?>
RT Active Member 5,314 2009 1,571 85 Mar 19, 2012 #8 ^That'll delete it for all pages, he wants in remove from a specific page.