是的,这在Google Chrome的Inspect element Source标签中的错误差异很大(也请查看firefox)。我搜索到处寻找解决方案但找不到任何有用的东西 我的Wordpress主题所以在检查模式下显示wp-admin
wp-admin/admin-ajax.php?action=df_dynamic_css&ver=3.9.1
wp-admin/admin-ajax.php?action=df_dynamic_js&ver=1
但在df动态css中的body部分
/* ==========================================================================
Body
========================================================================== */
body {
background-color: #dddddd;
}
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/wp-content/themes/dialy-theme/lib/css/dynamic-css.php:45) in <b>/home/*****/public_html/wp-content/themes/dialy-theme/lib/css/fonts.php</b> on line <b>2</b><br />`
它显示了源代码中的目录我不知道为什么它会进入检查模式 动态css.php
/* ==========================================================================
Body
========================================================================== */
<?php if($bodyBgType=="pattern") { ?>
body {
background-color: #ddd;
background-image: url(<?php echo THEME_IMAGE_URL;?>patterns/<?php echo $bodyPattern;?>.png)
}
<?php } elseif($bodyBgType=="color") { ?>
body {
background-color: #<?php echo $bodyColor;?>;
}
<?php } elseif($bodyBgType=="image") { ?>
body {
background-image: url(<?php echo $bodyImage;?>);
background-attachment:fixed;
background-position:center;
}
<?php } ?>
答案 0 :(得分:0)
在您的文件/home/*****/public_html/wp-content/themes/dialy-theme/lib/css/dynamic-css.php
中,检查您是否有一个尾随?>
行。如果是这样,请将其删除。