title: PHP hide div on specific pages?
body: <p>My site is located here: <a href="http://math.pixelworklab.com/home-study" rel="nofollow">http://math.pixelworklab.com/home-study</a></p>
  
  <p>I am looking to hide the navigation bar only on two pages </p>
  
  <p><a href="http://math.pixelworklab.com/checkout" rel="nofollow">Checkout</a></p>
  
  <p><a href="http://math.pixelworklab.com/cart" rel="nofollow">Cart</a></p>
  
  <p>Basically prevent the user from being distracted with other links while checking out. </p>
  
  <p>How would I hide this div on these pages using an IF statement?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>/* Navigation */</p>
  
  <pre><code>if ( ! function_exists( 'woo_nav' ) ) {
      function woo_nav() { 
          global $woo_options;
          woo_nav_before();
  ?&gt;
  
  &lt;?php if (strpos($_SERVER['REQUEST_URI'],'/checkout/') === false 
         || strpos($_SERVER['REQUEST_URI'],'/cart/') === false ):?&gt;
  
      &lt;div id="navigation" class="col-full"&gt;
          &lt;?php woo_nav_inside(); ?&gt;
          &lt;?php
          if ( function_exists( 'has_nav_menu' ) &amp;&amp; has_nav_menu( 'primary-menu' ) ) {
              wp_nav_menu( array( 'sort_column' =&gt; 'menu_order', 'container' =&gt; 'ul', 'menu_id' =&gt; 'main-nav', 'menu_class' =&gt; 'nav fl', 'theme_location' =&gt; 'primary-menu' ) );
          } else {
          ?&gt;
          &lt;ul id="main-nav" class="nav fl"&gt;
              &lt;?php 
              if ( get_option( 'woo_custom_nav_menu' ) == 'true' ) {
                  if ( function_exists( 'woo_custom_navigation_output' ) )
                      woo_custom_navigation_output( "name=Woo Menu 1" );
  
              } else { ?&gt;
  
                  &lt;?php if ( is_page() ) $highlight = "page_item"; else $highlight = "page_item current_page_item"; ?&gt;
                  &lt;li class="&lt;?php echo $highlight; ?&gt;"&gt;&lt;a href="&lt;?php echo home_url( '/' ); ?&gt;"&gt;&lt;?php _e( 'Home', 'woothemes' ); ?&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;?php wp_list_pages( 'sort_column=menu_order&amp;depth=6&amp;title_li=&amp;exclude=' ); ?&gt;
              &lt;?php } ?&gt;
          &lt;/ul&gt;&lt;!-- /#nav --&gt;
          &lt;?php } ?&gt;  
  
          &lt;?php endif;?&gt;
      &lt;/div&gt;&lt;!-- /#navigation --&gt;
  &lt;?php
          woo_nav_after();
      } // End woo_nav()
  }
  </code></pre>