I have a problem showing some piece of code on all pages but one, how can I achieve this?
I have this droplet, that is showing on all pages, but I would like it to be shown on all but the first page. So if u are on the link http://www.some-domain.com/index.php You wont se this.
<h4>Calendar</h4>
<p>[[procal-events?section_id=312]]</p>
Any ideas how to do that?
You can add a condition based on URL like below code, it won't display if URL have index.php :
<?php
$homepage = "/index.php";
$currentpage = $_SERVER['REQUEST_URI'];
if($homepage != $currentpage) {?>
<h4>Calendar</h4>
<p>[[procal-events?section_id=312]]</p>
<?php } ?>
I got it, in my case I had to put in an ID of a page so this is what I did.
<?php if (PAGE_ID != 123) { ?>
... my code ...
<?php } ?>
Thank you
R