因此,我能够使用以下代码为front-page.php显示一个自定义页脚:
<?php
if(is_page(2436)) {
get_footer('two');
}
else {
get_footer();
}
wp_footer();
?>
```
If I try to use this code changing the page ID to the about us page and adding it to page.php it changes my footer but it doesn't show me the footer I created.
<?php
if(is_page('2286')) {
get_footer('two');
}
else {
get_footer();
}
wp_footer();?>