dream989898 2018-02-14 19:35
浏览 52
已采纳

get_footer没有显示Wordpress网站

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/):

footer

  • 写回答

1条回答 默认 最新

  • dongyong6045 2018-02-14 21:01
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算