I’m building on top of the Salutation BP theme from themeforest:
The theme uses create_page_layout() to generate layouts as design-{name}.php
When I check for is_front_page() in design.php (the layout that is being called by index.php) it runs the code.
Fixed it by using a display none on the home-page body class. Not elegant but it works.
I’ve tried running it with if is_home(){ // some code } and the code doesn’t run. My guess is that it’s because its in a widget on the home page sidebar? Could this be? Is there any conditional function to check for this?