Products
GG网络技术分享 2025-03-18 16:12 10
For some reason my footer disappeared for my site http://juliannaspizza.com.
I checked the template file for the home page and get_footer
is being called as shown below. Any idea why my footer is still not showing up?
<?php/**
* Template Name: Full Width Page
*
* @package Fortune
*/
get_header();
get_template_part( \'parts/single\', \'page-header\' ); ?>
<div class=\"container full-width-page\">
<div class=\"row\">
<div id=\"primary\" class=\"content-area col-lg-12\">
<main id=\"main\" class=\"site-main\" role=\"main\">
<?php
while ( have_posts() ) : the_post();
get_template_part( \'content\', \'page\' );
if ( comments_open() || get_comments_number() ) {
comments_template();
}
endwhile; ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .row -->
</div><!-- .container -->
<?php
get_footer();
This is what my footer used to look like (https://certifagift.blog/):
图片转代码服务由CSDN问答提供
感谢您的意见,我们尽快改进~
功能建议出于某种原因,我的页脚在我的网站上消失了 http://juliannaspizza.com 。 </ p>
我检查了主页的模板文件,并且正在调用 get_footer </ code>,如下所示。 知道为什么我的页脚仍然没有显示?</ p>
&lt;?php / **
*模板名称:全宽页面
*
* @ package Fortune
* /
get_header();
get_template_part(\'parts / single\',\'page-header\'); ?&gt;
&lt; div class =“container full-width-page”&gt;
&lt; div class =“row”&gt;
&lt; div id =“primary”class =“content-area col- lg-12“&gt;
&lt; main id =”main“class =”site-main“role =”main“&gt;
&lt;?php
while(have_posts()):the_post() ;
get_template_part(\'content\',\'page\');
if(comments_open()|| get_comments_number()){
comments_template();
}
endwhile; ?&gt;
&lt; / main&gt;&lt;! - #main - &gt;
&lt; / div&gt;&lt;! - #primary - &gt;
&lt; / div&gt;&lt; ! - .row - &gt;
&lt; / div&gt;&lt;! - .container - &gt;
&lt;?php
get_footer();
</ code> </ pre> \\ n
这是我的页脚看起来的样子( https://certifagift.blog/ ) :</ p>
</ div>
网友观点:
Your widgets are gone. From the markup, it looks like your footer (which does appear) is expecting to have widgets, but those are not appearing. Go to Appearance -> Widgets in your dashboard and add your widgets back in, and you should be good.
Demand feedback