Geronantimo
Technical User
I am having difficulty getting this to work...
I have some code that I would like not to display on particular webpages. I have a line of PHP like this:
This works inasmuch as the HTML content is not displayed on the home page. I would like to add several other pages for which the HTML content is not displayed but I have not worked out how to combine them.
For example, I would like to add
but I have not succeeded. Can somebody show me what I am missing?
I have some code that I would like not to display on particular webpages. I have a line of PHP like this:
Code:
<?php if ( $_SERVER['REQUEST_URI'] !== "/" ) { ?>
html content
<?php } ?>
This works inasmuch as the HTML content is not displayed on the home page. I would like to add several other pages for which the HTML content is not displayed but I have not worked out how to combine them.
For example, I would like to add
Code:
<?php if ( $_SERVER['REQUEST_URI'] !== "/checkout/cart/" ) { ?>
Code:
<?php if ( $_SERVER['REQUEST_URI'] !== "/myaccount/" ) { ?>
but I have not succeeded. Can somebody show me what I am missing?