我試圖在上週更新我們的移動網站,但是我遇到了頁腳問題。它在主頁上加載得很好,但在普通頁面上崩潰。兩者都使用相同的footer.php文件。Footer.php在不同頁面上顯示不同頁面
是我工作的臨時站點是: http://premierdism.staging.wpengine.com/
<?php
/**
* The template for displaying the footer.
*
*/
?> \t \t \t \t <div class="clearfix"></div>
\t \t \t \t </div><!-- .site_content .inner-wrapper -->
\t </div><!-- .site_content -->
<?php if(!is_front_page()):?>
\t \t \t \t <?php if(!is_page(52)):?>
<div class="page-cta">
\t \t \t \t \t \t \t \t \t <h4 style="font-family: Georgia;font-size: 40px !important; font-weight: bold; color: #075aa0;">Free, No Obligation</h4>
\t \t \t \t \t \t \t \t \t <h5 style="font-size: 40px !important; font-weight: 500; line-height: .6 !important; margin-top: 0px; color: #075aa0;;">Disability Evalution</h5>
\t \t \t \t \t \t \t \t \t <hr style="border-top: 1px solid #39393b; width:90%;">
\t \t \t \t \t \t \t \t \t <p style="font-size: 30px !important;">Let us help you determine if you<br>qualify for disability income<p>
\t \t \t \t \t \t \t \t \t <div style="height:20px;"></div>
\t \t \t \t \t \t \t \t \t <a title="Free social Security Evaluation" href="http://premierdism.staging.wpengine.com/contact-us/free-evaluation/">Free Evaluation</a>
</div>
<?php endif;?>
<img src="http://premierdism.staging.wpengine.com/wp-content/uploads/2016/09/Premier_Bottom_Logos.png" />
<?php else:?>
<div class="home-map">
\t <div class="inner-wrapper">
\t \t \t \t <?php
$args = array(
'numberposts' => -1,
'post_parent' => 56,
'post_type' => 'page',
'orderby' => 'title',
'order' => 'ASC'
);
$children = get_children($args);
?>
<?php if($children):?>
<div class="state-list">
<p style="align:left; Color:#a32a2f; margin-bottom:0px;"><b>Click the map below<br>for more state information</b></p>
\t \t \t \t \t \t \t \t \t \t \t \t <hr style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; width: 570px; border-top: 2px solid #a32a2f;" />
\t \t \t \t \t \t \t \t \t \t \t \t <p align="left">All 50 states and territories</p>
<a href="https://m.premierdisability.com/the-premier-difference/nationwide-disability-benefits/"><img src="http://premierdism.staging.wpengine.com/wp-content/uploads/2016/09/Premier_Map.svg" alt="Premier Disability offers nationwide help"/>
\t \t \t \t \t \t <div class="clearfix"></div>
</div>
<?php endif;?>
</div>
</div>
<?php endif;?>
\t <div class="clearfix"></div>
\t <div class="site-footer">
<div class="footer-disclamier">
<div class="inner-back">
<div class="inner-wrapper" style="background-color: #e3e3e3; width: 640px; margin: -20px 0px 0px -40px; padding: 20px 0px;">
<p class="sharelink">Keep in touch</p>
<div style="padding-bottom:80px;" class="social relative">
<div style="position: absolute; left: 20%;">
\t \t \t \t \t <a class="block left" href="https://www.facebook.com/PremierDisability" target="_blank"><img src="http://premierdism.staging.wpengine.com/wp-content/uploads/2016/09/Facebook-Icon.jpg" style="width:60px;"></a>
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t <a class="block left" href="https://plus.google.com/110325482012270783070" target="_blank"><img src="https://m.premierdisability.com/wp-content/uploads/2016/09/GooglePlus-Icon.png" style="width:60px;"></a>
\t \t <a class="block left" href="https://twitter.com/PremierDisSvcs" target="_blank"><img src="https://m.premierdisability.com/wp-content/uploads/2016/09/Twitter-Icon.png" style="width:60px;"></a>
\t \t <a class="block left" href="https://www.instagram.com/premierdisabilityservices/" target="_blank"><img src="https://m.premierdisability.com/wp-content/uploads/2016/09/Instagram-Icon.png" style="width:60px;"></a>
</div>
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t <div style="padding: 0px 109px; margin-top: 90px;">
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t <a href="https://itunes.apple.com/us/app/premier-ssd/id1143571193?mt=8"><div class="applink Apple"></div></a>
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t <a href='https://play.google.com/store/apps/details?id=com.goodbarber.premierdis&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><div class="applink Google"></div></a>
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t </div>
</div>
</div>
\t \t \t \t \t \t \t \t \t \t \t \t <div class="small-disclaimer"><p style="font-size:12px !important;margin-top: 20px;line-height:1.2;"><b>Disclaimer:</b> We are a privately owned, nationwide advocacy service. Any information you receive on this site is not intended to be, nor should it be construed as, legal advice. Using this website or contacting us does not create any type of legal or fiduciary relationship. Premier Disability Services, LLC is neither affiliated with nor endorsed by the Social Security Administration or any other government agency or entity.</p></div>
</div>
</div>
<div class="copyright">
\t <div class="inner-back">
<div class="inner-wrapper">
<?php Theme::getCopyright()?>
</div>
</div>
</div>
\t </div><!-- .site-footer -->
\t \t </div><!-- #main .wrapper -->
\t </div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
哈曼感謝您的快速反應。但實際上它現在是如何設置的。 – IamDade89
http://premierdism.staging.wpengine.com/wp-content/uploads/2016/10/Homepage-footer-code.png – IamDade89
哎呀,沒有看到。好的,嘗試在include行之前打開輸出緩衝區,然後使用'ob_get_clean'。檢查更新後的答案 – Harman