我在WP中的index.php上有一组徽标,它们出现在buttom,就在我想要的地方。
但它们不会出现在所有页面上,如果我在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(); ?>
有什么想法吗?
答案 0 :(得分:2)
把它放在footer.php中。 =]
看看它如何在底部调用get_footer()?如果我没记错的话,那就是从footer.php获取页脚。
无论哪种方式,它都属于那里。
答案 1 :(得分:0)
它可能会回落到你不知道的另一个模板(也许这是一个儿童主题回归父母?)。尝试回显您当前要测试的页面模板...
<div><strong>Current template:</strong> <?php get_current_template( true ); ?></div>