Tagged: template
Hi guys,
We use multiple footers wich are called in a specific template (page-x.php). We created the templates php files just to call the specific footer.
This works fine, but on the portfolio pages it does not. We assume the portfolio pages uses this excisting template ‘single-portfolio.php’, where we called our footer: <?php include (‘footer-b.php’); ?>
Unfortunately our footer is not displayed. We do use the avia laybuilder on the portfolio pages, but on other template pages where the avia layoutbuilder is used the correct footer is called.
Any idea what might cause this?
Hi hotspot!
Thank you for using Enfold.
Did you create the portfolio items using the advance layout builder? If yes, then you need to include the custom footer on the template-builder.php file. Use the is_singular(‘portfolio’) conditional function.
Regards,
Ismael
Hi Ismael,
Thanks so much, that worked!
Maybe our final code could be of help to other users, we used:
if ( is_singular(‘portfolio’) ) {
include (‘footer-b.php’);
} else {
get_footer();
}