Conditional section in myTheme/elements/.footer.php

Permalink
I have a certain section of the footer that I would only like to appear on the "home" page type. What's the proper way to do this in the template?

The Logic:
if (pagetype == "home") {
# the areas I want to render
}

bengenares
 
jordanlev replied on at Permalink Best Answer Reply
jordanlev
<?php
if ($c->getCollectionTypeHandle() == 'home') {
  //stuff goes here
}
?>
bengenares replied on at Permalink Reply
bengenares
Thanks! That's exactly what I needed.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.