Hide DIV on specific pages

Categories: PHP, Programming & Scripting

PHP snippet to hide a specific DIV or content from specific pages:

<?php if (strpos($_SERVER['REQUEST_URI'],'/checkout/') === false || strpos($_SERVER['REQUEST_URI'],'/cart/') === false ):?> 
<div ... navigation ...</div> 
<?php endif;?>

References:

https://stackoverflow.com/questions/12222756/php-hide-div-on-specific-pages

«
»