質問編集履歴
1
初心者マーク追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,328 +14,328 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
```
|
18
|
+
|
19
|
+
画面上部左の三本線と右のMENU共にサイドメニューバーを読み込むようになっているのですが、右のMENUをTELとし、電話がかけられるようにしたいです。
|
20
|
+
|
17
21
|
```
|
18
22
|
|
19
|
-
|
23
|
+
|
24
|
+
|
25
|
+
### 該当のソースコード
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
```ここに言語名を入力
|
30
|
+
|
31
|
+
<?php
|
32
|
+
|
33
|
+
/**
|
34
|
+
|
35
|
+
* The header for our theme
|
36
|
+
|
37
|
+
*
|
38
|
+
|
39
|
+
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
40
|
+
|
41
|
+
*
|
42
|
+
|
43
|
+
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
44
|
+
|
45
|
+
*
|
46
|
+
|
47
|
+
* @package Amazorize
|
48
|
+
|
49
|
+
*/
|
50
|
+
|
51
|
+
?>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<!doctype html>
|
56
|
+
|
57
|
+
<html <?php language_attributes(); ?>>
|
58
|
+
|
59
|
+
<head>
|
60
|
+
|
61
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
62
|
+
|
63
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-153769363-1"></script>
|
64
|
+
|
65
|
+
<script>
|
66
|
+
|
67
|
+
window.dataLayer = window.dataLayer || [];
|
68
|
+
|
69
|
+
function gtag(){dataLayer.push(arguments);}
|
70
|
+
|
71
|
+
gtag('js', new Date());
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
gtag('config', 'UA-153769363-1');
|
76
|
+
|
77
|
+
</script>
|
78
|
+
|
79
|
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
80
|
+
|
81
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
82
|
+
|
83
|
+
<link href="https://fonts.googleapis.com/css?family=Alegreya+SC|Almendra+SC|Charmonman:700|Dawning+of+a+New+Day|IM+Fell+English+SC|Junge|Marcellus+SC|Nanum+Myeongjo|Noto+Serif+JP:200|Petit+Formal+Script|Playfair+Display+SC|Quintessential|Vollkorn+SC&display=swap" rel="stylesheet">
|
84
|
+
|
85
|
+
<link href="https://fonts.googleapis.com/css?family=M+PLUS+1p:300|Sawarabi+Gothic&display=swap&subset=japanese" rel="stylesheet">
|
86
|
+
|
87
|
+
<link rel="profile" href="https://gmpg.org/xfn/11">
|
88
|
+
|
89
|
+
<?php wp_head(); ?>
|
90
|
+
|
91
|
+
</head>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<body <?php body_class(); ?>>
|
96
|
+
|
97
|
+
<?php wp_body_open(); ?>
|
98
|
+
|
99
|
+
<div id="page" class="site">
|
100
|
+
|
101
|
+
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'amazorize' ); ?></a>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<header id="masthead" class="banner-shadow sheader site-header clearfix">
|
106
|
+
|
107
|
+
<div class="content-wrap">
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<?php if ( get_theme_mod('amazorize_general_notify_smg') != '' ) : ?>
|
112
|
+
|
113
|
+
<div class="xgnotification-top" style="background-color:<?php echo esc_html( get_theme_mod('amazorize_general_notify_bg', '#ffffff') ) ?>; color: <?php echo esc_html( get_theme_mod('amazorize_general_notify_text', '#11171a') ) ?>;">
|
114
|
+
|
115
|
+
<?php echo wp_kses_post(get_theme_mod('amazorize_general_notify_smg')); ?>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<?php endif; ?>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<?php if ( get_header_image() ) : ?>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<div id="site-header" class="clearfix" >
|
128
|
+
|
129
|
+
<?php echo do_shortcode('[metaslider id="8"]'); ?>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<?php endif; ?>
|
138
|
+
|
139
|
+
<?php if ( get_theme_mod('amazorize_general_header_banner') != '' ) : ?>
|
140
|
+
|
141
|
+
<?php if ( ! ( is_single() && get_theme_mod('amazorize_general_header_banner_options_single', 'single_banner_enable') == 'single_banner_disable' ) ) : ?>
|
142
|
+
|
143
|
+
<div class="campaign-banner" style="background-image: url(<?php echo get_theme_mod( 'amazorize_general_header_banner', '' ); ?>);" ?>
|
144
|
+
|
145
|
+
<?php if ( get_theme_mod('amazorize_general_notify_smg') != '' ) : ?>
|
146
|
+
|
147
|
+
<div class="xgbanner-container">
|
148
|
+
|
149
|
+
<header class="banner-title" style="color:<?php echo esc_html( get_theme_mod('amazorize_general_header_banner_text_color', '#ffffff') ) ?>;" >
|
150
|
+
|
151
|
+
<?php echo wp_kses_post(get_theme_mod('amazorize_general_header_banner_text')); ?>
|
152
|
+
|
153
|
+
</header>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<?php endif; ?>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<?php endif; ?>
|
162
|
+
|
163
|
+
<?php endif; ?>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<div class="clearfix obi">
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<div class="content-wrap">
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<?php if ( has_custom_logo() ) : ?>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<div class="site-branding branding-logo">
|
180
|
+
|
181
|
+
<?php the_custom_logo(); ?>
|
182
|
+
|
183
|
+
</div><!-- .site-branding -->
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<?php else : ?>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<div class="site-branding">
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<?php if ( is_front_page() && is_home() ) : ?>
|
196
|
+
|
197
|
+
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
198
|
+
|
199
|
+
<?php else : ?>
|
200
|
+
|
201
|
+
<h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
|
202
|
+
|
203
|
+
<?php
|
204
|
+
|
205
|
+
endif;
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
$description = get_bloginfo( 'description', 'display' );
|
210
|
+
|
211
|
+
if ( $description || is_customize_preview() ) : ?>
|
212
|
+
|
213
|
+
<p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
|
214
|
+
|
215
|
+
<?php
|
216
|
+
|
217
|
+
endif;
|
218
|
+
|
219
|
+
?>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</div><!-- .site-branding -->
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
<?php
|
228
|
+
|
229
|
+
endif;
|
230
|
+
|
231
|
+
?>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<nav id="primary-site-navigation" class="primary-menu main-navigation">
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
<?php
|
240
|
+
|
241
|
+
wp_nav_menu( array(
|
242
|
+
|
243
|
+
'theme_location' => 'menu-1',
|
244
|
+
|
245
|
+
'menu_id' => 'primary-menu',
|
246
|
+
|
247
|
+
'menu_class' => 'pmenu'
|
248
|
+
|
249
|
+
) );
|
250
|
+
|
251
|
+
?>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</nav><!-- #primary-site-navigation -->
|
256
|
+
|
257
|
+
</div>
|
258
|
+
|
259
|
+
<div class="super-menu clearfix">
|
260
|
+
|
261
|
+
<div class="super-menu-nav">
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<button class="icon-toggle">
|
266
|
+
|
267
|
+
<span class="inner-line"><?php esc_html_e( 'Toggle Main Menu', 'amazorize' ); ?></span>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
</button>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<span class="inner-label"><?php esc_html_e( 'Menu', 'amazorize' ); ?></span>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
</div>
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</div>
|
288
|
+
|
289
|
+
</header><!-- #masthead -->
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<?php
|
294
|
+
|
295
|
+
if ( have_posts() && is_archive() ) :
|
296
|
+
|
297
|
+
?>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
<div class="section-page-header">
|
302
|
+
|
303
|
+
<div class="content-wrap">
|
304
|
+
|
305
|
+
<header class="archive-page-header">
|
306
|
+
|
307
|
+
<?php
|
308
|
+
|
309
|
+
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
310
|
+
|
311
|
+
the_archive_description( '<div class="archive-description">', '</div>' );
|
312
|
+
|
313
|
+
?>
|
314
|
+
|
315
|
+
</header>
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
</div><!-- .section-page-header -->
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<?php
|
324
|
+
|
325
|
+
endif;
|
326
|
+
|
327
|
+
?>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div id="content" class="site-content clearfix">
|
332
|
+
|
333
|
+
<div class="content-wrap">
|
20
334
|
|
21
335
|
```
|
22
336
|
|
23
337
|
|
24
338
|
|
25
|
-
### 該当のソースコード
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
```ここに言語名を入力
|
30
|
-
|
31
|
-
<?php
|
32
|
-
|
33
|
-
/**
|
34
|
-
|
35
|
-
* The header for our theme
|
36
|
-
|
37
|
-
*
|
38
|
-
|
39
|
-
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
40
|
-
|
41
|
-
*
|
42
|
-
|
43
|
-
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
44
|
-
|
45
|
-
*
|
46
|
-
|
47
|
-
* @package Amazorize
|
48
|
-
|
49
|
-
*/
|
50
|
-
|
51
|
-
?>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<!doctype html>
|
56
|
-
|
57
|
-
<html <?php language_attributes(); ?>>
|
58
|
-
|
59
|
-
<head>
|
60
|
-
|
61
|
-
<!-- Global site tag (gtag.js) - Google Analytics -->
|
62
|
-
|
63
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-153769363-1"></script>
|
64
|
-
|
65
|
-
<script>
|
66
|
-
|
67
|
-
window.dataLayer = window.dataLayer || [];
|
68
|
-
|
69
|
-
function gtag(){dataLayer.push(arguments);}
|
70
|
-
|
71
|
-
gtag('js', new Date());
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
gtag('config', 'UA-153769363-1');
|
76
|
-
|
77
|
-
</script>
|
78
|
-
|
79
|
-
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
80
|
-
|
81
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
82
|
-
|
83
|
-
<link href="https://fonts.googleapis.com/css?family=Alegreya+SC|Almendra+SC|Charmonman:700|Dawning+of+a+New+Day|IM+Fell+English+SC|Junge|Marcellus+SC|Nanum+Myeongjo|Noto+Serif+JP:200|Petit+Formal+Script|Playfair+Display+SC|Quintessential|Vollkorn+SC&display=swap" rel="stylesheet">
|
84
|
-
|
85
|
-
<link href="https://fonts.googleapis.com/css?family=M+PLUS+1p:300|Sawarabi+Gothic&display=swap&subset=japanese" rel="stylesheet">
|
86
|
-
|
87
|
-
<link rel="profile" href="https://gmpg.org/xfn/11">
|
88
|
-
|
89
|
-
<?php wp_head(); ?>
|
90
|
-
|
91
|
-
</head>
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<body <?php body_class(); ?>>
|
96
|
-
|
97
|
-
<?php wp_body_open(); ?>
|
98
|
-
|
99
|
-
<div id="page" class="site">
|
100
|
-
|
101
|
-
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'amazorize' ); ?></a>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<header id="masthead" class="banner-shadow sheader site-header clearfix">
|
106
|
-
|
107
|
-
<div class="content-wrap">
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<?php if ( get_theme_mod('amazorize_general_notify_smg') != '' ) : ?>
|
112
|
-
|
113
|
-
<div class="xgnotification-top" style="background-color:<?php echo esc_html( get_theme_mod('amazorize_general_notify_bg', '#ffffff') ) ?>; color: <?php echo esc_html( get_theme_mod('amazorize_general_notify_text', '#11171a') ) ?>;">
|
114
|
-
|
115
|
-
<?php echo wp_kses_post(get_theme_mod('amazorize_general_notify_smg')); ?>
|
116
|
-
|
117
|
-
</div>
|
118
|
-
|
119
|
-
<?php endif; ?>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<?php if ( get_header_image() ) : ?>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
<div id="site-header" class="clearfix" >
|
128
|
-
|
129
|
-
<?php echo do_shortcode('[metaslider id="8"]'); ?>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<?php endif; ?>
|
138
|
-
|
139
|
-
<?php if ( get_theme_mod('amazorize_general_header_banner') != '' ) : ?>
|
140
|
-
|
141
|
-
<?php if ( ! ( is_single() && get_theme_mod('amazorize_general_header_banner_options_single', 'single_banner_enable') == 'single_banner_disable' ) ) : ?>
|
142
|
-
|
143
|
-
<div class="campaign-banner" style="background-image: url(<?php echo get_theme_mod( 'amazorize_general_header_banner', '' ); ?>);" ?>
|
144
|
-
|
145
|
-
<?php if ( get_theme_mod('amazorize_general_notify_smg') != '' ) : ?>
|
146
|
-
|
147
|
-
<div class="xgbanner-container">
|
148
|
-
|
149
|
-
<header class="banner-title" style="color:<?php echo esc_html( get_theme_mod('amazorize_general_header_banner_text_color', '#ffffff') ) ?>;" >
|
150
|
-
|
151
|
-
<?php echo wp_kses_post(get_theme_mod('amazorize_general_header_banner_text')); ?>
|
152
|
-
|
153
|
-
</header>
|
154
|
-
|
155
|
-
</div>
|
156
|
-
|
157
|
-
<?php endif; ?>
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
<?php endif; ?>
|
162
|
-
|
163
|
-
<?php endif; ?>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<div class="clearfix obi">
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<div class="content-wrap">
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<?php if ( has_custom_logo() ) : ?>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
<div class="site-branding branding-logo">
|
180
|
-
|
181
|
-
<?php the_custom_logo(); ?>
|
182
|
-
|
183
|
-
</div><!-- .site-branding -->
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
<?php else : ?>
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
<div class="site-branding">
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
<?php if ( is_front_page() && is_home() ) : ?>
|
196
|
-
|
197
|
-
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
198
|
-
|
199
|
-
<?php else : ?>
|
200
|
-
|
201
|
-
<h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
|
202
|
-
|
203
|
-
<?php
|
204
|
-
|
205
|
-
endif;
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
$description = get_bloginfo( 'description', 'display' );
|
210
|
-
|
211
|
-
if ( $description || is_customize_preview() ) : ?>
|
212
|
-
|
213
|
-
<p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
|
214
|
-
|
215
|
-
<?php
|
216
|
-
|
217
|
-
endif;
|
218
|
-
|
219
|
-
?>
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
</div><!-- .site-branding -->
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
<?php
|
228
|
-
|
229
|
-
endif;
|
230
|
-
|
231
|
-
?>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
<nav id="primary-site-navigation" class="primary-menu main-navigation">
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
<?php
|
240
|
-
|
241
|
-
wp_nav_menu( array(
|
242
|
-
|
243
|
-
'theme_location' => 'menu-1',
|
244
|
-
|
245
|
-
'menu_id' => 'primary-menu',
|
246
|
-
|
247
|
-
'menu_class' => 'pmenu'
|
248
|
-
|
249
|
-
) );
|
250
|
-
|
251
|
-
?>
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</nav><!-- #primary-site-navigation -->
|
256
|
-
|
257
|
-
</div>
|
258
|
-
|
259
|
-
<div class="super-menu clearfix">
|
260
|
-
|
261
|
-
<div class="super-menu-nav">
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
<button class="icon-toggle">
|
266
|
-
|
267
|
-
<span class="inner-line"><?php esc_html_e( 'Toggle Main Menu', 'amazorize' ); ?></span>
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
</button>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
<span class="inner-label"><?php esc_html_e( 'Menu', 'amazorize' ); ?></span>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
</div>
|
280
|
-
|
281
|
-
</div>
|
282
|
-
|
283
|
-
</div>
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
</div>
|
288
|
-
|
289
|
-
</header><!-- #masthead -->
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
<?php
|
294
|
-
|
295
|
-
if ( have_posts() && is_archive() ) :
|
296
|
-
|
297
|
-
?>
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
<div class="section-page-header">
|
302
|
-
|
303
|
-
<div class="content-wrap">
|
304
|
-
|
305
|
-
<header class="archive-page-header">
|
306
|
-
|
307
|
-
<?php
|
308
|
-
|
309
|
-
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
310
|
-
|
311
|
-
the_archive_description( '<div class="archive-description">', '</div>' );
|
312
|
-
|
313
|
-
?>
|
314
|
-
|
315
|
-
</header>
|
316
|
-
|
317
|
-
</div>
|
318
|
-
|
319
|
-
</div><!-- .section-page-header -->
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
<?php
|
324
|
-
|
325
|
-
endif;
|
326
|
-
|
327
|
-
?>
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
<div id="content" class="site-content clearfix">
|
332
|
-
|
333
|
-
<div class="content-wrap">
|
334
|
-
|
335
|
-
```
|
336
|
-
|
337
|
-
|
338
|
-
|
339
339
|
### 試したこと
|
340
340
|
|
341
341
|
|