Detect website front page in event.php template

[ad_1]

Hi,

I’ve successfully customised the layout of the photo display with Events Calendar Pro. I did this by copying the event.php file over to <THEME>/tribe/events-pro/v2/photo/ as described in the documentation, and customising it.

This is all fine, but I’d like to customise the template differently when I display the photo view on the site home page. For example I’ve removed the featured photo on the home page, but want to continue showing it on other photo layouts.

I tried using the standard WordPress is_front_page() to check if we’re on the site front page and hiding the featured image. if(is_front_page() ) { etc…

This doesn’t appear to have any effect when I use it within the event.php template file. Is there a better / correct way of doing this?

Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer