我无法让Wordpress自定义页脚在关于我们的页面上工作

时间:2019-11-16 20:34:10

标签: wordpress

因此,我能够使用以下代码为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();?>

0 个答案:

没有答案