前提・実現したいこと
https://vwp789171.kagoyacloud.com/
ワードプレスを用いてこのようなブログを運営しています。
発生している問題・エラーメッセージ
####サイドバーが表示されない。
個別の記事ページにおいて、ページ上部に表示されるワードプレスツールバーとサイドバーが表示されなくなりました。恐らくこの記事を更新した直後ではないかと思います。
https://vwp789171.kagoyacloud.com/2019/04/03/line-pay/
トップページ、固定ページでは表示されます。
####コメントができない
コメントボタンを押しても何も起きません。
試したこと
COCOONからTwenty Nineteenなど元々備わっていた別のテーマにしたらサイドバーが復活しましたが…
なにぶん知識がなく、どこをどうすればいいのかわからない状況です。
補足情報(FW/ツールのバージョンなど)
サイト名:なんぷすノマド生活
サイトURL:https://vwp789171.kagoyacloud.com
ホームURL:https://vwp789171.kagoyacloud.com
コンテンツURL:/wp-content
インクルードURL:/wp-includes/
テンプレートURL:/wp-content/themes/cocoon-master
スタイルシートURL:/wp-content/themes/cocoon-child-master
子テーマスタイル:/wp-content/themes/cocoon-child-master/style.css
Wordpressバージョン:5.1.1
PHPバージョン:7.3.4
ブラウザ:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
サーバーソフト:nginx/1.15.10
サーバープロトコル:HTTP/2.0
エンコーディング:gzip, deflate, br
言語:ja,en-US;q=0.9,en;q=0.8
テーマ名:Cocoon
バージョン:1.7.4.8
カテゴリ数:4
タグ数:7
ユーザー数:1
子テーマ名:Cocoon Child
バージョン:1.0.6
Gutenberg:1
AMP:0
PWA:0
ホームイメージ:/wp-content/themes/cocoon-master/screenshot.jpg
ブラウザキャッシュ有効化:0
HTML縮小化:0
CSS縮小化:0
JavaScript縮小化:0
Lazy Load:0
WEBフォントLazy Load:0
利用中のプラグイン:
single.phpの中身
<?php //通常ページとAMPページの切り分け /** * Cocoon WordPress Theme * @author: yhira * @link: https://wp-cocoon.com/ * @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later */ if ( !defined( 'ABSPATH' ) ) exit; if (!is_amp()) { get_header(); } else { get_template_part('tmp/amp-header'); } ?> <?php //投稿ページ内容 get_template_part('tmp/single-contents'); ?> <h2><?php the_field('title'); ?></h2> <?php get_footer(); ?>single-contents.phpの中身
<?php /** * Cocoon WordPress Theme * @author: yhira * @link: https://wp-cocoon.com/ * @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later */ if ( !defined( 'ABSPATH' ) ) exit; /////////////////////////////////////// // 投稿ページのコンテンツ ///////////////////////////////////////?> <?php //パンくずリストがメイントップの場合 if (is_single_breadcrumbs_position_main_top()){ get_template_part('tmp/breadcrumbs'); } ?> <?php //本文テンプレート get_template_part('tmp/content') ?> <div class="under-entry-content"> <?php get_template_part('tmp/related-entries'); //関連記事 ?> <?php //関連記事下の広告表示 if (is_ad_pos_below_related_posts_visible() && is_all_adsenses_visible()){ get_template_part_with_ad_format(get_ad_pos_below_related_posts_format(), 'ad-below-related-posts', is_ad_pos_below_related_posts_label_visible()); }; ?> <?php //投稿関連記事下ウイジェット if ( is_active_sidebar( 'below-single-related-entries' ) ): ?><?php endif; ?> <?php get_template_part('tmp/pager-post-navi'); //投稿ナビ ?> <?php //コメントを表示する場合 if (is_single_comment_visible()) { comments_template(); //コメントテンプレート } ?> <?php //コメントフォーム下ウイジェット if ( is_active_sidebar( 'below-single-comment-form' ) ): ?><?php dynamic_sidebar( 'below-single-related-entries' ); ?>
<?php endif; ?> </div> <?php //パンくずリストがメインボトムの場合 if (is_single_breadcrumbs_position_main_bottom()){ get_template_part('tmp/breadcrumbs'); } ?> <?php //メインカラム追従領域 get_template_part('tmp/main-scroll'); ?><?php dynamic_sidebar( 'below-single-comment-form' ); ?>
回答1件
あなたの回答
tips
プレビュー