Html Wordpress帖子区域背景丢失
我需要一些认真的帮助。我在一个Wordpress网站上工作,删除了一些我不应该删除的东西,现在我无法取回,另外,我不确定删除了什么。唯一似乎受到影响的页面是主页,而其余页面则正常 我试着从侧边栏中删除一些东西,现在它们不见了,但是帖子背景不见了,需要为白色,页脚被推到左侧 我通过我的浏览器查看了页面编码,我可以确定它在哪个div中,但是,我在Wordpress文件中找不到它 感谢您的帮助 该网站位于: 下面是我正在编辑的代码,我在底部工作:Html Wordpress帖子区域背景丢失,html,css,wordpress,Html,Css,Wordpress,我需要一些认真的帮助。我在一个Wordpress网站上工作,删除了一些我不应该删除的东西,现在我无法取回,另外,我不确定删除了什么。唯一似乎受到影响的页面是主页,而其余页面则正常 我试着从侧边栏中删除一些东西,现在它们不见了,但是帖子背景不见了,需要为白色,页脚被推到左侧 我通过我的浏览器查看了页面编码,我可以确定它在哪个div中,但是,我在Wordpress文件中找不到它 感谢您的帮助 该网站位于: 下面是我正在编辑的代码,我在底部工作: enter code here <?php /*
enter code here
<?php
/*
Template Name: Matheny Home Page
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<div class="post">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
<div id="matheny-sidebar-block">
<div style="width:100%;text-align:center;"><a href="http://www.mathenyheatcool.com/contact-us/schedule-service/">
<img src="http://www.mathenyheatcool.com/wp-content/uploads/2012/03/schedule-repair-service.png" alt="Heating and Cooling Repair Service"></a></div>
<br />
<div style="width:100%;text-align:left;">
<?php
$monthname = date("F");
if($monthname == "March" || $monthname == "April" || $monthname == "May"){
echo '<a href="http://www.mathenyheatcool.com/schedule-service/"><span style="font-size:large;color:#D2691E;">It\'s Time for Spring Maintenance</span></a>';
echo '<br /><strong>Get Your AC Cleaned & Checked</strong><br/><div style="text-align:left;font-size:small;">Preventative maintenance means fewer systems failures and prolongs the life of your heating and cooling equipment and ensures efficient operation. <a href="http://www.mathenyheatcool.com/services/#heating_cooling_maintenance">Planned Maintenance Contracts</a> are available.</div><a href="http://www.mathenyheatcool.com/schedule-service/"><strong>Click Here</a> or call us at 314-727-9000</strong></div><div style="font-size:small;"> to schedule your cooling system maintenance appointment.';
}
elseif($monthname == "September" || $monthname == "October" || $monthname == "November") {
echo '<a href="http://www.mathenyheatcool.com/schedule-service/"><span style="font-size:large;color:#D2691E;">It\'s Time for Fall Maintenance</span></a>';
echo '<br /><strong>Get Your Heating Cleaned & Checked</strong><br/><div style="text-align:left;font-size:small;">Preventative maintenance means fewer systems failures and prolongs the life of your heating and cooling equipment and ensures efficient operation. <a href="http://www.mathenyheatcool.com/services/#heating_cooling_maintenance">Planned Maintenance Contracts</a> are available.</div><a href="http://www.mathenyheatcool.com/schedule-service/"><strong>Click Here</a> or call us at 314-727-9000</strong></div><div style="font-size:small;"> to schedule your heating system maintenance appointment.';
}
else{
echo '<a href="http://www.mathenyheatcool.com/schedule-service/"><span style="font-size:large;color:#D2691E;">Need Regular Maintenance?</span></a>';
echo '<br /><strong>Get Your System Cleaned & Checked</strong><br/><div style="text-align:left;font-size:small;">Preventative maintenance means fewer systems failures and prolongs the life of your heating and cooling equipment and ensures efficient operation. <a href="http://www.mathenyheatcool.com/services/#heating_cooling_maintenance">Planned Maintenance Contracts</a> are available.</div><a href="http://www.mathenyheatcool.com/schedule-service/"><strong>Click Here</a> or call us at 314-727-9000</strong></div><div style="font-size:small;"> to schedule your heating and cooling system maintenance appointment.';
}
?>
</div>
<br /><br />
<div style="width:100%;text-align:center;"><a href="http://www.mathenyheatcool.com/schedule-comfort-consultation/">
<span style="font-size:x-large;color:#707070;">Time for new equipment?</span>
<img src="http://mathenyheatcool.com/wp-content/uploads/2012/03/new_air_conditioner.jpg" /></a><br /><strong>Free In-Home Comfort Consultation</strong><br/><div style="text-align:left;font-size:small;">We are an independent American Standard Customer Care dealer specializing in high-efficiency heating and cooling systems.</div><a href="http://www.mathenyheatcool.com/schedule-comfort-consultation/"><strong>Click Here</a> or call us at 314-727-9000</strong></div><div style="font-size:small;"> to schedule your free in-home Comfort Consultation.</div>
<br /><br />
<br />
</div>
<?php get_sidebar('home1'); ?>
</div>
<?php get_footer(); ?>
您是从sidebar.php文件中删除内容,还是从带有HTML的窗口小部件文本区域中删除内容?我猜您缺少了一个结束语。有关您正在编辑的文件的更多信息将有所帮助。我从Wordpress菜单中删除了侧边栏中的一个小部件。上面的代码是我编辑的。它“可能”在非活动的小部件中。试试那里。如果没有,那么您需要将该代码复制/粘贴到以前使用过的任何小部件中。或者将其插入侧边栏,但它是硬编码的。我在侧边栏中添加了一个空白文本框,文章的背景回来了。我删除了上面输入的最后一个代码,页脚移回了中间。