因此,我正在查看一些我没有编写的代码。这里有一段代码:
<nav id="footer-nav" class="span8 last">
<a href="#"><button class="footerButton">Menu</button></a>
<!--div class="menu-button">Menu</div-->
<?php wp_nav_menu( array(\'menu\' => \'Footer Menu\') ); ?>
</nav><!-- id="footer-nav" -->
我从这段代码中解释的是,在wp仪表板的某个地方有一个页脚菜单,但我没有看到。
我也去参加了一些活动。要查找的php:
<?php wp_nav_menu(array(\'theme_location\' => \'footer\')); ?>
函数中没有这样的代码。php。那么,假设没有页脚菜单,而这段代码只是坐在那里无所事事,这样安全吗?
从长远来看,我试图更好地理解页脚。php文件,因为我需要在此图像旁边添加png图像:
<div class="span2 bbb last">
<a title="John Eaton Homes, Inc. BBB Business Review" href="http://www.bbb.org/indianapolis/business-reviews/home-builders/john-eaton-homes-inc-in-indianapolis-in-40000093/#bbbonlineclick"><img alt="John Eaton Homes, Inc. BBB Business Review" style="border: 0;" src="http://seal-indy.bbb.org/seals/black-seal-120-70-john-eaton-homes-inc-40000093.png" /></a>
这是完整的页脚。php:
<?php if ( !is_front_page() ): ?>
<div class="main-wrapper clearfix footer-more">
<img class="divider" src="<?php bloginfo(\'template_directory\');?>/images/divider.png" alt="" />
<h1>Discover more from John Eaton Homes...</h1>
<?php include dirname(__FILE__) . "/featured-links.php"; ?>
</div>
<?php endif; ?>
</div> <!--main wrapper-->
<footer id="main-footer">
<div class="main-wrapper clearfix">
<div class="span3">
<a href="/"><img class="footer-logo" src="<?php the_field(\'logo\',\'options\'); ?>" alt="John Eaton Homes" /></a>
</div>
<nav id="footer-nav" class="span8 last">
<a href="#"><button class="footerButton">Menu</button></a>
<!--div class="menu-button">Menu</div-->
<?php wp_nav_menu( array(\'menu\' => \'Footer Menu\') ); ?>
</nav><!-- id="footer-nav" -->
<div class="span2 bbb last">
<a title="John Eaton Homes, Inc. BBB Business Review" href="http://www.bbb.org/indianapolis/business-reviews/home-builders/john-eaton-homes-inc-in-indianapolis-in-40000093/#bbbonlineclick"><img alt="John Eaton Homes, Inc. BBB Business Review" style="border: 0;" src="http://seal-indy.bbb.org/seals/black-seal-120-70-john-eaton-homes-inc-40000093.png" /></a>
</div>
</div>
</footer><!-- id="main-footer" -->
<?php wp_footer(); ?>
</body>
</html>
我尝试添加以下内容:
<img src=“images/bagi-logo.png"/>
但它不会出现在请求它的图像类span2 bbb last的旁边。当我把它放在页脚徽标图像旁边时,它确实会出现在页脚徽标图像下方。