質問編集履歴
1
補足です
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,4 +23,46 @@
|
|
23
23
|
### 試したこと
|
24
24
|
|
25
25
|
使用している**プラグインをすべて無効化**にしましたが,そのままです.
|
26
|
-
固定ページの**ページ属性**を変えましたが,そのままです.
|
26
|
+
固定ページの**ページ属性**を変えましたが,そのままです.
|
27
|
+
|
28
|
+
### [補足]sidebar.phpのソースコード
|
29
|
+
|
30
|
+
```php
|
31
|
+
<?php
|
32
|
+
/**
|
33
|
+
* Cocoon WordPress Theme
|
34
|
+
* @author: yhira
|
35
|
+
* @link: https://wp-cocoon.com/
|
36
|
+
* @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
|
37
|
+
*/
|
38
|
+
if ( !defined( 'ABSPATH' ) ) exit;
|
39
|
+
|
40
|
+
if ( is_active_sidebar( 'sidebar' ) ) : ?>
|
41
|
+
<div id="sidebar" class="sidebar nwa cf" role="complementary">
|
42
|
+
|
43
|
+
<?php //サイドバー上の広告表示
|
44
|
+
if (is_ad_pos_sidebar_top_visible() && is_all_adsenses_visible()){
|
45
|
+
get_template_part_with_ad_format(get_ad_pos_sidebar_top_format(), 'ad-sidebar-top', is_ad_pos_sidebar_top_label_visible());
|
46
|
+
}; ?>
|
47
|
+
|
48
|
+
<?php dynamic_sidebar( 'sidebar' ); ?>
|
49
|
+
|
50
|
+
<?php //サイドバー下の広告表示
|
51
|
+
if (is_ad_pos_sidebar_bottom_visible() && is_all_adsenses_visible()){
|
52
|
+
get_template_part_with_ad_format(get_ad_pos_sidebar_bottom_format(), 'ad-sidebar-bottom', is_ad_pos_sidebar_bottom_label_visible());
|
53
|
+
}; ?>
|
54
|
+
|
55
|
+
<?php
|
56
|
+
////////////////////////////
|
57
|
+
//サイドバー追従領域
|
58
|
+
////////////////////////////
|
59
|
+
if ( is_active_sidebar( 'sidebar-scroll' ) ) : ?>
|
60
|
+
<div id="sidebar-scroll" class="sidebar-scroll">
|
61
|
+
<?php dynamic_sidebar( 'sidebar-scroll' ); ?>
|
62
|
+
</div>
|
63
|
+
<?php endif; ?>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
<?php endif; ?>
|
67
|
+
|
68
|
+
```
|