質問編集履歴

1

タグを囲みました。宜しくお願い致します。心を入れ換えて返信致します。

2019/07/18 04:48

投稿

wpwbs585
wpwbs585

スコア19

test CHANGED
File without changes
test CHANGED
@@ -1,32 +1,30 @@
1
1
  html5&css3にてパララックス効果はついたものの、
2
2
 
3
- <script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
3
+ ``````
4
4
 
5
- <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
5
+ <script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
6
6
 
7
- <script src="https://rawgithub.com/pederan/Parallax-ImageScroll/master/jquery.imageScroll.min.js"></script>
7
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
8
8
 
9
- <script>
9
+ <script src="https://rawgithub.com/pederan/Parallax-ImageScroll/master/jquery.imageScroll.min.js"></script>
10
10
 
11
- var touch = Modernizr.touch;
11
+ <script>
12
12
 
13
- jQuery('.img-holder').imageScroll({
13
+ var touch = Modernizr.touch; jQuery('.img-holder').imageScroll({ imageAttribute: (touch === true) ? 'image-mobile' : 'image', touch: touch, container: jQuery('.main_0'),mediaWidth: 1920,mediaHeight: 1280 }); </script>
14
14
 
15
- imageAttribute: (touch === true) ? 'image-mobile' : 'image',
16
-
17
- touch: touch, container: jQuery('.main_0'),mediaWidth: 1920,mediaHeight: 1280
18
-
19
- });
20
-
21
- </script>
22
-
23
- <div class="main_0">
15
+ <div class="main_0">
24
16
 
25
17
  <div class="img-holder" data-image="img/seminar.jpg" data-image-mobile="img/seminar_1.jpg" data-width="1920" data-height="1280"></div></div>
26
18
 
19
+ ```
20
+
21
+ wordpressでは画像が表示されなくなりました。
27
22
 
28
23
 
24
+
25
+
26
+
29
- wordpressにて
27
+ ```
30
28
 
31
29
  <script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
32
30
 
@@ -56,7 +54,7 @@
56
54
 
57
55
  functions.phpにて
58
56
 
59
-
57
+ ---
60
58
 
61
59
  <?php
62
60
 
@@ -82,11 +80,19 @@
82
80
 
83
81
  add_action( 'wp_footer', 'my_scripts' );
84
82
 
83
+ ```
84
+
85
+
86
+
87
+
88
+
89
+
90
+
85
91
 
86
92
 
87
93
  としたところ、画像が出てこなくなりました。「img/seminar.jpg」と短くする
88
94
 
89
-
95
+ ```
90
96
 
91
97
  function imagepassshort($arg) {
92
98
 
@@ -98,4 +104,10 @@
98
104
 
99
105
  add_action('the_content', 'imagepassshort');
100
106
 
107
+ ```
108
+
109
+
110
+
111
+
112
+
101
113
  も試しましたが、画像が出て来ませんでした。どなたかご教授をお願い致します。