質問編集履歴
2
seach.phpの説明を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -47,8 +47,10 @@
|
|
47
47
|
} ?>
|
48
48
|
```
|
49
49
|
|
50
|
+
(追記)
|
50
|
-
サイドバーの読み込み部分
|
51
|
+
以下、サイドバーの読み込み部分です。
|
52
|
+
サイドバーは右カラムにあるので下の方のrightと書かれているコードあたりで読み込んでいるものと思われます。
|
51
|
-
```
|
53
|
+
```php
|
52
54
|
<div class="container">
|
53
55
|
<div class="row">
|
54
56
|
<?php
|
1
記事一覧ページでサイドバーを読み込んでいる個所を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -47,6 +47,39 @@
|
|
47
47
|
} ?>
|
48
48
|
```
|
49
49
|
|
50
|
+
サイドバーの読み込み部分
|
51
|
+
```search.php(記事一覧ページ)
|
52
|
+
<div class="container">
|
53
|
+
<div class="row">
|
54
|
+
<?php
|
55
|
+
do_action( 'hestia_before_search_content' );
|
56
|
+
|
57
|
+
if ( $hestia_blog_sidebar_layout === 'sidebar-left' ) {
|
58
|
+
get_sidebar();
|
59
|
+
}
|
60
|
+
?>
|
61
|
+
<div class="<?php echo esc_attr( $wrap_class ); ?>">
|
62
|
+
<?php
|
63
|
+
if ( have_posts() ) :
|
64
|
+
while ( have_posts() ) :
|
65
|
+
the_post();
|
66
|
+
get_template_part( 'template-parts/content' );
|
67
|
+
endwhile;
|
68
|
+
the_posts_pagination();
|
69
|
+
else :
|
70
|
+
get_template_part( 'template-parts/content', 'none' );
|
71
|
+
endif;
|
72
|
+
?>
|
73
|
+
</div>
|
74
|
+
<?php
|
75
|
+
if ( $hestia_blog_sidebar_layout === 'sidebar-right' ) {
|
76
|
+
get_sidebar();
|
77
|
+
}
|
78
|
+
?>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
```
|
82
|
+
|
50
83
|
以上になります。
|
51
84
|
わかりづらい内容で大変申し訳ございませんが、もしおわかりになられる方がいらっしゃいましたらご教示いただけると大変助かります。
|
52
85
|
よろしくお願いいたします。
|