質問編集履歴
3
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,11 +32,11 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
<link rel='stylesheet' id='parent-style-css' href='http://
|
35
|
+
<link rel='stylesheet' id='parent-style-css' href='http://abc.com/wp-content/**themes/enfold/style.css**?ver=5.4.1' type='text/css' media='all' />
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
<link rel='stylesheet' id='child-style-css' href='http://
|
39
|
+
<link rel='stylesheet' id='child-style-css' href='http://abc.com/wp-content/**themes/enfold-child/style.css**?ver=5.4.1' type='text/css' media='all' />
|
40
40
|
|
41
41
|
|
42
42
|
|
2
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,8 +19,6 @@
|
|
19
19
|
・functions.php
|
20
20
|
|
21
21
|
・screenshot.png
|
22
|
-
|
23
|
-
・single.php
|
24
22
|
|
25
23
|
・style.php
|
26
24
|
|
@@ -101,157 +99,3 @@
|
|
101
99
|
*/
|
102
100
|
|
103
101
|
```
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
```php
|
108
|
-
|
109
|
-
<?php
|
110
|
-
|
111
|
-
if ( !defined('ABSPATH') ){ die(); }
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
global $avia_config;
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
/*
|
120
|
-
|
121
|
-
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
|
122
|
-
|
123
|
-
*/
|
124
|
-
|
125
|
-
get_header();
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
$title = __('Blog - Latest News', 'avia_framework'); //default blog title
|
130
|
-
|
131
|
-
$t_link = home_url('/');
|
132
|
-
|
133
|
-
$t_sub = "";
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
if(avia_get_option('frontpage') && $new = avia_get_option('blogpage'))
|
138
|
-
|
139
|
-
{
|
140
|
-
|
141
|
-
$title = get_the_title($new); //if the blog is attached to a page use this title
|
142
|
-
|
143
|
-
$t_link = get_permalink($new);
|
144
|
-
|
145
|
-
$t_sub = avia_post_meta($new, 'subtitle');
|
146
|
-
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
do_action( 'ava_after_main_title' );
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
?>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<div class='container template-blog template-single-blog '>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<?php
|
176
|
-
|
177
|
-
/* Run the loop to output the posts.
|
178
|
-
|
179
|
-
* If you want to overload this in a child theme then include a file
|
180
|
-
|
181
|
-
* called loop-index.php and that will be used instead.
|
182
|
-
|
183
|
-
*
|
184
|
-
|
185
|
-
*/
|
186
|
-
|
187
|
-
get_template_part( 'includes/loop', 'index' );
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
$blog_disabled = ( avia_get_option('disable_blog') == 'disable_blog' ) ? true : false;
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
if(!$blog_disabled)
|
196
|
-
|
197
|
-
{
|
198
|
-
|
199
|
-
//show related posts based on tags if there are any
|
200
|
-
|
201
|
-
get_template_part( 'includes/related-posts');
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
//wordpress function that loads the comments template "comments.php"
|
206
|
-
|
207
|
-
comments_template();
|
208
|
-
|
209
|
-
}
|
210
|
-
|
211
|
-
?>
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<!--end content-->
|
216
|
-
|
217
|
-
</main>
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
<?php
|
222
|
-
|
223
|
-
$avia_config['currently_viewing'] = "blog";
|
224
|
-
|
225
|
-
//get the sidebar
|
226
|
-
|
227
|
-
get_sidebar();
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
?>
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
</div><!--end container-->
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
</div><!-- close default .container_wrap element -->
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
<?php
|
250
|
-
|
251
|
-
get_footer();
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
```
|
1
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
WordPressの子テーマを有効化すると、
|
1
|
+
WordPressの子テーマを有効化すると、レイアウトが崩れてしまいます。
|
test
CHANGED
File without changes
|