質問編集履歴

1

試したこと

2017/12/31 07:35

投稿

ryota0315
ryota0315

スコア25

test CHANGED
File without changes
test CHANGED
@@ -330,6 +330,48 @@
330
330
 
331
331
 
332
332
 
333
+ 試したこと
334
+
335
+ - wp_enqueue_script("jquery"); を追記しコードの中の<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>を削除した
336
+
337
+ - $をjQueryに変更しいろいろなパターンを試した
338
+
339
+ - function.phpに以下のコードを追加した
340
+
341
+ ```php
342
+
343
+ function my_scripts() {
344
+
345
+ wp_enqueue_script( 'jquery' );
346
+
347
+ }
348
+
349
+ add_action( 'wp_enqueue_scripts', 'my_scripts' );
350
+
351
+ ```
352
+
353
+ - .htaccessに以下のコードを追加した(httpsにする対応)
354
+
355
+ ```
356
+
357
+ # BEGIN WordPress
358
+
359
+ <IfModule mod_rewrite.c>
360
+
361
+ RewriteEngine On
362
+
363
+ RewriteCond %{HTTPS} off
364
+
365
+ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
366
+
367
+ </IfModule>
368
+
369
+ ```
370
+
371
+
372
+
373
+
374
+
333
375
  なぜ今まで動いていたのにも関わらず動かなくなったのでしょうか。
334
376
 
335
377