Hi,
I try to check the current page with:
<?php if ($page->is(page('example') == true): ?>
<?php else: ?>
<?php endif ?>
But it seems to be not running.
Any PHP idea?
Hi,
I try to check the current page with:
<?php if ($page->is(page('example') == true): ?>
<?php else: ?>
<?php endif ?>
But it seems to be not running.
Any PHP idea?
There’s a closing parenthesis missing:
<?php if ($page->is(page('example')) == true): ?>
The closing parenthesis did not bring the success. Somehow the page was not identified.
I found another way:
<?php if ($page->template() == 'example'): ?>