[Problem] How to remove sidebar on certain pages
-
Hi, recently I have been editing a wordpress theme and have run into the issue of removing the sidebar. The page I am trying to remove it from is:
http://www.blueedgetraining.com/services/
As you can see there is a bullet pointed list I would like to remove.
I have already made that page run off a new template called services but cannot see a call sidebar prompt. Previously the page was running from the page.php file. The code looks like this:
<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package BlueEdge * @subpackage Blue_Edge_2012 */ get_header(); ?> <?php /* Template Name: services */ ?> <script type="text/javascript"> $(function() { // run the code in the markup! $('#executeme pre code').each(function() { eval($(this).text()); }); }); </script> <div id="body-inside"> <div id="content" role="main"> <?php /* if( is_page(array('about')) ){ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'about' ); ?> <?php endwhile; // end of the loop. ?> <?php } else if( is_page(array('content') ){ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content'); ?> <?php endwhile; // end of the loop. ?> <?php } else if( is_page(array('services') ){ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content'); ?> <?php endwhile; // end of the loop. ?> <?php } else if( is_page(array('resources')) ){ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'resources' ); ?> <?php endwhile; // end of the loop. ?> <?php } else { */ while ( have_posts() ) : the_post(); ?> <?php if (is_page('384') || is_page('125') || is_page('110') || is_page('114') || is_page('117')) { //About Page get_template_part( 'content', 'about-page' ); } else { get_template_part( 'content', 'page' ); } ?> <?php endwhile; // end of the loop. ?> <?php // } ?> </div><!-- #content --> </div><!-- #body-inside --> <?php get_footer(); ?>Thanks in advance for any help.
Seb
The topic ‘[Problem] How to remove sidebar on certain pages’ is closed to new replies.