質問編集履歴

1

内容を追記しました。

2021/09/01 12:16

投稿

aya.h
aya.h

スコア1

test CHANGED
@@ -1 +1 @@
1
- Wordpress『Sydney Child』テーマ使用。モバイル表示メニューバーが作動しな
1
+ Wordpress『Sydney Child』テーマ使用。モバイル表示でヘッターメニューバーが作動しなくなった
test CHANGED
@@ -1,18 +1,12 @@
1
1
  Wordpress『Sydney Child』テーマ使用しています。
2
2
 
3
- モバイル・タブレット表示時にTOPページのメニューバーが動かなくなりました。
3
+ モバイル・タブレット表示時にTOPページのヘッターメニューバーが動かなくなりました。
4
-
5
-
6
4
 
7
5
  作成時は正常に作動していましたが、現在は作動しません。
8
6
 
9
- 三本線のメニューアイコンは表示されています。)
7
+ 三本線のメニューアイコンは表示されています。)
10
-
11
-
12
-
13
- *試したこと*
8
+
14
-
15
- PCページでは通常通りのメニュー表示ができており、
9
+ PCページでは通常通りのメニュー表示ができており、
16
10
 
17
11
  モバイルでもURLの直接入力をすれば、ページ内は正常に見れます。
18
12
 
@@ -20,10 +14,234 @@
20
14
 
21
15
 
22
16
 
17
+ インターネット検索で色々と調べてみましたが、解決しませんでした。
18
+
19
+
20
+
23
- コードが壊れている可能性がありますが、どの部分が原因なのかがわかりません。
21
+ コードが壊れている可能性がありますが、Wordpress、プログラミング初心者の為、どの部分が原因なのかがわかりません。
24
22
 
25
23
  ご教示いただけますでしょうか?
26
24
 
27
25
 
28
26
 
27
+
28
+
29
+ ```functions.php
30
+
31
+ <?php
32
+
33
+ // Exit if accessed directly
34
+
35
+ if ( !defined( 'ABSPATH' ) ) exit;
36
+
37
+
38
+
39
+ // BEGIN ENQUEUE PARENT ACTION
40
+
41
+ // AUTO GENERATED - Do not modify or remove comment markers above or below:
42
+
43
+
44
+
45
+ if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
46
+
47
+ function chld_thm_cfg_locale_css( $uri ){
48
+
49
+ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
50
+
51
+ $uri = get_template_directory_uri() . '/rtl.css';
52
+
53
+ return $uri;
54
+
55
+ }
56
+
57
+ endif;
58
+
59
+ add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
60
+
61
+
62
+
63
+ if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
64
+
65
+ function chld_thm_cfg_parent_css() {
66
+
67
+ wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'sydney-bootstrap' ) );
68
+
69
+ }
70
+
71
+ endif;
72
+
73
+ add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
74
+
75
+
76
+
77
+ // END ENQUEUE PARENT ACTION
78
+
79
+
80
+
81
+ ```
82
+
83
+
84
+
85
+ ヘッターPHP
86
+
87
+ ```header.php
88
+
89
+ <?php
90
+
91
+ /**
92
+
93
+ * The header for our theme.
94
+
95
+ *
96
+
97
+ * Displays all of the <head> section and everything up till <div id="content">
98
+
99
+ *
100
+
101
+ * @package Sydney
102
+
103
+ */
104
+
105
+ ?><!DOCTYPE html>
106
+
107
+ <html <?php language_attributes(); ?>>
108
+
109
+ <head>
110
+
111
+ <meta charset="<?php bloginfo( 'charset' ); ?>">
112
+
113
+ <meta name="viewport" content="width=device-width, initial-scale=1">
114
+
115
+ <link rel="profile" href="http://gmpg.org/xfn/11">
116
+
117
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
118
+
119
+ <?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) : ?>
120
+
121
+ <?php if ( get_theme_mod('site_favicon') ) : ?>
122
+
123
+ <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
124
+
125
+ <?php endif; ?>
126
+
127
+ <?php endif; ?>
128
+
129
+
130
+
131
+ <?php wp_head(); ?>
132
+
133
+ </head>
134
+
135
+
136
+
137
+ <body <?php body_class(); ?>>
138
+
139
+
140
+
141
+ <?php do_action('sydney_before_site'); //Hooked: sydney_preloader() ?>
142
+
143
+
144
+
145
+ <div id="page" class="hfeed site">
146
+
147
+ <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'sydney' ); ?></a>
148
+
149
+
150
+
151
+ <?php do_action('sydney_before_header'); //Hooked: sydney_header_clone() ?>
152
+
153
+
154
+
155
+ <header id="masthead" class="site-header" role="banner">
156
+
157
+ <div class="header-wrap">
158
+
159
+ <div class="container">
160
+
161
+ <div class="row">
162
+
163
+ <div class="col-md-4 col-sm-8 col-xs-10">
164
+
165
+ <?php if ( get_theme_mod('site_logo') ) : ?>
166
+
167
+ <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
168
+
169
+ <?php if ( is_home() && !is_front_page() ) : ?>
170
+
171
+ <h1 class="site-title screen-reader-text"><?php bloginfo( 'name' ); ?></h1>
172
+
173
+ <?php endif; ?>
174
+
175
+ <?php else : ?>
176
+
177
+ <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
178
+
179
+ <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
180
+
181
+ <?php endif; ?>
182
+
183
+ </div>
184
+
185
+ <div class="col-md-8 col-sm-4 col-xs-2">
186
+
187
+ <div class="btn-menu"><i class="sydney-svg-icon"><?php sydney_get_svg_icon( 'icon-menu', true ); ?></i></div>
188
+
189
+ <nav id="mainnav" class="mainnav" role="navigation">
190
+
191
+ <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?>
192
+
193
+ </nav><!-- #site-navigation -->
194
+
195
+ </div>
196
+
197
+ </div>
198
+
199
+ </div>
200
+
201
+ </div>
202
+
203
+ </header><!-- #masthead -->
204
+
205
+
206
+
207
+ <?php do_action('sydney_after_header'); ?>
208
+
209
+
210
+
211
+ <div class="sydney-hero-area">
212
+
213
+ <?php sydney_slider_template(); ?>
214
+
215
+ <div class="header-image">
216
+
217
+ <?php sydney_header_overlay(); ?>
218
+
219
+ <img class="header-inner" src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>">
220
+
221
+ </div>
222
+
223
+ <?php sydney_header_video(); ?>
224
+
225
+
226
+
227
+ <?php do_action('sydney_inside_hero'); ?>
228
+
229
+ </div>
230
+
231
+
232
+
233
+ <?php do_action('sydney_after_hero'); ?>
234
+
235
+
236
+
237
+ <div id="content" class="page-wrap">
238
+
239
+ <div class="container content-wrapper">
240
+
241
+ <div class="row">
242
+
243
+ ```
244
+
245
+
246
+
29
247
  宜しくお願い致します。