質問編集履歴
1
補足です
test
CHANGED
File without changes
|
test
CHANGED
@@ -49,3 +49,87 @@
|
|
49
49
|
使用している**プラグインをすべて無効化**にしましたが,そのままです.
|
50
50
|
|
51
51
|
固定ページの**ページ属性**を変えましたが,そのままです.
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
### [補足]sidebar.phpのソースコード
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
```php
|
60
|
+
|
61
|
+
<?php
|
62
|
+
|
63
|
+
/**
|
64
|
+
|
65
|
+
* Cocoon WordPress Theme
|
66
|
+
|
67
|
+
* @author: yhira
|
68
|
+
|
69
|
+
* @link: https://wp-cocoon.com/
|
70
|
+
|
71
|
+
* @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
|
72
|
+
|
73
|
+
*/
|
74
|
+
|
75
|
+
if ( !defined( 'ABSPATH' ) ) exit;
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
if ( is_active_sidebar( 'sidebar' ) ) : ?>
|
80
|
+
|
81
|
+
<div id="sidebar" class="sidebar nwa cf" role="complementary">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<?php //サイドバー上の広告表示
|
86
|
+
|
87
|
+
if (is_ad_pos_sidebar_top_visible() && is_all_adsenses_visible()){
|
88
|
+
|
89
|
+
get_template_part_with_ad_format(get_ad_pos_sidebar_top_format(), 'ad-sidebar-top', is_ad_pos_sidebar_top_label_visible());
|
90
|
+
|
91
|
+
}; ?>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<?php dynamic_sidebar( 'sidebar' ); ?>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<?php //サイドバー下の広告表示
|
100
|
+
|
101
|
+
if (is_ad_pos_sidebar_bottom_visible() && is_all_adsenses_visible()){
|
102
|
+
|
103
|
+
get_template_part_with_ad_format(get_ad_pos_sidebar_bottom_format(), 'ad-sidebar-bottom', is_ad_pos_sidebar_bottom_label_visible());
|
104
|
+
|
105
|
+
}; ?>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<?php
|
110
|
+
|
111
|
+
////////////////////////////
|
112
|
+
|
113
|
+
//サイドバー追従領域
|
114
|
+
|
115
|
+
////////////////////////////
|
116
|
+
|
117
|
+
if ( is_active_sidebar( 'sidebar-scroll' ) ) : ?>
|
118
|
+
|
119
|
+
<div id="sidebar-scroll" class="sidebar-scroll">
|
120
|
+
|
121
|
+
<?php dynamic_sidebar( 'sidebar-scroll' ); ?>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<?php endif; ?>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<?php endif; ?>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
```
|