HI Newbie question here, which I think is either something not correct in my php code or my incorrect understanding of how I should do this. I was trying to avoid having to use multiple php templates where possible. So thought maybe I could use some if statements to give certain pages certain php snippets, leave others blank if needed.
Please see my code below…
Interestingly the homepage is not affected, so maybe just something incorrect with my code?
Great for some advice here, new to php, but very familiar with python. So maybe a language mixup?
<div class="page_area_wrapper"> <div class="page_area_wrapper_inner_left"> <?php if($page->isHomePage()): snippet('landingvid') ?> <?php elseif($page->is('Client')): snippet('portfoliogrid_parent') ?> <?php elseif($page->children('Client')): snippet('portfoliogrid_parent') ?> <?php else: ?> <div></div> <?php endif ?>