Page.php不会显示添加的内容


Page.php wont show added content

我在我的index.php中有一组徽标,它们出现在底部,就在我想要的地方。

但它们不会出现在所有页面上,如果我添加在page.php的确切位置上的确切代码它不会显示,在我的网站的任何页面上,我需要的标志出现在所有页面上。我是否在正确的文件上插入代码?

Index.php和Page.php完全相同,所以这是我的代码的两端:

<?php 
    lets_make_carousel();
?>
    <div id="footerlogos">
    <div id="logotonal"><a href="#" target="_blank">
    <img src="/new/wp-content/themes/music/images/footerlogos/tonal.png" /></a></div>
    <div id="logoah"><a href="#">
    <img src="/new/wp-content/themes/music/images/footerlogos/ah.png" /></a></div>
    <div id="logotranceil"><a href="#" target="_blank">
    <img src="/new/wp-content/themes/music/images/footerlogos/tranceil.png" /></a></div>
    <div id="logobpm"><a href="#" target="_blank">
    <img src="/new/wp-content/themes/music/images/footerlogos/bpm.png" /></a></div>
    <div id="logoakum"><a href="#" target="_blank">
    <img src="/new/wp-content/themes/music/images/footerlogos/akum.png" /></a></div>
    </div>
    <?php get_footer(); ?>

任何想法吗?

放到footer.php中。=]

看到它是如何在底部调用get_footer()的吗?如果我没记错的话,这是从footer。php获取页脚。

这是可能的,它回落到另一个模板你不知道(也许这是一个子主题回落到父?)试着回显当前所使用的页面模板来测试…

<div><strong>Current template:</strong> <?php get_current_template( true ); ?></div>

更多信息请访问:https://wordpress.stackexchange.com/questions/37292/how-do-you-find-out-which-template-page-is-serving-the-current-page