过去有这个工作,但突然之间没有。以下是结构: Thre也是它的设置和控制,并且背景颜色和图像设置都可以单独工作,但是当我有两个设置它不会工作时,最初我有它的工作,颜色总是工作,除非选择了背景图像,那将覆盖它,但现在颜色工作,背景图像不。有没有办法让这个再次起作用?
<footer class="footer" role="contentinfo">
<div id="inner-footer" class="row">
<div class="large-12">
<div class="medium-6 large-6 columns">
<div id="dragoncove-footer-textleft" class="float-left">
<?php { echo get_theme_mod( 'dragoncove_footer_textleft', 'No Copyright Information Added Yet' ); } ?>
</div>
</div>
<div class="medium-6 large-6 columns">
<div id="dragoncove-footer-textright" class="float-right">
<?php { echo get_theme_mod( 'dragoncove_footer_textright', 'No Information Added Yet' ); } ?>
</div>
</div>
</div>
</footer>
这是功能:
function dragoncove_footer_customize_css() {
?>
<style>
<?php echo get_theme_mod( 'dragoncove_footer_textleft', 'Content Left Not Added Yet.' ); ?>
<?php echo get_theme_mod( 'dragoncove_footer_textright', 'Content Right Not Added Yet.' ); ?>
footer.footer {background-color: <?php echo get_theme_mod('dragoncove_footer_bgcolor', ''); ?>; }
footer.footer {background-image: url(<?php echo get_theme_mod('dragoncove_footer_bgimage', '') ?>); }
footer.footer {padding: <?php echo get_theme_mod('dragoncove_footer_padding', ''); ?>; }
footer.footer {color: <?php echo get_theme_mod('dragoncove_footer_navfontcolor', ''); ?>; }
</style>
<?php
}
add_action( 'wp_head', 'dragoncove_footer_customize_css');
答案 0 :(得分:0)
找到了修复程序。添加()
footer.footer {background-image: url(<?php echo get_theme_mod('dragoncove_footer_bgimage', '()') ?>); }