我正在尝试将版权声明和页脚菜单添加到我的210个儿童主题的页脚区域。到目前为止,我已经创建了子主题,并在页脚中添加了版权声明和页脚菜单。php文件。
我的子页脚代码。php文件是:
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content
* after. Calls sidebar-footer.php for bottom widgets.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
</div><!-- #main -->
<div id="footer" role="contentinfo">
<div id="colophon">
<?php
/* A sidebar in the footer? Yep. You can can customize
* your footer with four columns of widgets.
*/
get_sidebar( \'footer\' );
?>
<div id="site-info">
<!-- EDIT -->
Copyright (c) 2013 Acme Inc. All rights reserved.
<?php wp_nav_menu( array( \'theme_location\' => \'footer-menu\' ) ); ?>
<!-- EDIT -->
</div><!-- #site-info -->
<div id="site-generator">
<!-- EDIT -->
<!-- EDIT -->
</div><!-- #site-generator -->
</div><!-- #colophon -->
</div><!-- #footer -->
</div><!-- #wrapper -->
<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>
</body>
</html>
问题在于格式。
Everything should be on one line without any bullets. Like:Copyright (c) 2013 Acme Inc. All rights reserved. Privacy Policy Terms & Conditions
相反,版权声明在自己的一行上,后面是链接(每一行都有项目符号)。
我试过浮动:左;和列表样式:无;。这在某种程度上起作用,但链接仍在单独的行上。也许是我的部门结构?