質問編集履歴

1

front-page.phpに加えheader.phpも入れました

2015/09/05 05:58

投稿

Wordpress
Wordpress

スコア82

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,389 @@
16
16
 
17
17
  ```ここに言語を入力
18
18
 
19
-
19
+ header.php
20
+
21
+ <!DOCTYPE html>
22
+
23
+ <head>
24
+
25
+ <meta charset="<?php bloginfo( 'charset' ); ?>" />
26
+
27
+ <meta name="viewport" content="width=device-width" />
28
+
29
+ <title><?php
30
+
31
+ /*
32
+
33
+ * Print the <title> tag based on what is being viewed.
34
+
35
+ */
36
+
37
+ global $page, $paged;
38
+
39
+
40
+
41
+ wp_title( '|', true, 'right' );
42
+
43
+
44
+
45
+ // Add the blog name.
46
+
47
+ bloginfo( 'name' );
48
+
49
+
50
+
51
+ // Add the blog description for the home/front page.
52
+
53
+ $site_description = get_bloginfo( 'description', 'display' );
54
+
55
+ if ( $site_description && ( is_home() || is_front_page() ) )
56
+
57
+ echo " | $site_description";
58
+
59
+
60
+
61
+ // Add a page number if necessary:
62
+
63
+ if ( $paged >= 2 || $page >= 2 )
64
+
65
+ echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
66
+
67
+
68
+
69
+ ?></title>
70
+
71
+
72
+
73
+
74
+
75
+ <link rel="stylesheet" href="<?php echo bloginfo('stylesheet_directory'); ?>/dropy/droppy.css" type="text/css" />
76
+
77
+ <link rel="stylesheet" href="<?php echo bloginfo('stylesheet_directory'); ?>/horiphotogallery.css" type="text/css" />
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+ <link rel="profile" href="http://gmpg.org/xfn/11" />
86
+
87
+ <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
88
+
89
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
90
+
91
+ <script src="<?php echo bloginfo('stylesheet_directory'); ?>/javascripts/jquery-1.6.4.min.js" type="text/javascript"></script>
92
+
93
+ <script type="text/javascript" src="<?php echo bloginfo('stylesheet_directory'); ?>/dropy/jquery.droppy.js"></script>
94
+
95
+ <script src="<?php echo bloginfo('stylesheet_directory'); ?>/javascripts/jquery.js" type="text/javascript"></script>
96
+
97
+ <script src="<?php echo bloginfo('stylesheet_directory'); ?>/javascripts/jquery.validate.js" type="text/javascript"></script>
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ <script type="text/javascript">
106
+
107
+ var ad = jQuery.noConflict();
108
+
109
+ <!--
110
+
111
+ ad(function() { $('#menu-default').droppy({trigger: 'mouseover'}); });
112
+
113
+ jQuery(document).ready(function($){
114
+
115
+ ad('#menu-item-943>a').attr('href', './妊娠中の子育て支援');
116
+
117
+
118
+
119
+
120
+
121
+ ad("a[href='#top']").click(function() {
122
+
123
+ ad("html, body").animate({ scrollTop: 0 }, "slow");
124
+
125
+ return false;
126
+
127
+ });
128
+
129
+ });
130
+
131
+ -->
132
+
133
+ </script>
134
+
135
+ <script type="text/javascript">
136
+
137
+ <!--
138
+
139
+ jQuery(document).ready(function($){
140
+
141
+ $("a[href='#top']").click(function() {
142
+
143
+ $("html, body").animate({ scrollTop: 0 }, "slow");
144
+
145
+ return false;
146
+
147
+ });
148
+
149
+ });
150
+
151
+ -->
152
+
153
+ </script>
154
+
155
+
156
+
157
+
158
+
159
+ <script language="javascript">
160
+
161
+ function show1()
162
+
163
+ {
164
+
165
+
166
+
167
+ if(document.getElementById('c1yes').checked==true)
168
+
169
+ {
170
+
171
+ //alert('hi');
172
+
173
+ document.getElementById("description").style.display='block';
174
+
175
+ }
176
+
177
+ else if(document.getElementById('c1no').checked==true) {
178
+
179
+ document.getElementById("description").style.display='none';
180
+
181
+ }
182
+
183
+ }
184
+
185
+
186
+
187
+
188
+
189
+ </script>
190
+
191
+ <!--<script language="javascript">
192
+
193
+ $("#description").hide();
194
+
195
+ $("input[name=alergic]").click(function()
196
+
197
+ {
198
+
199
+ if ( $("#c1no").attr('checked'))
200
+
201
+ $("#description").hide();
202
+
203
+ if ( $("#c1yes").attr('checked'))
204
+
205
+ $("#description").show();
206
+
207
+ });
208
+
209
+
210
+
211
+ </script> -->
212
+
213
+
214
+
215
+ <style type="text/css">
216
+
217
+
218
+
219
+ .thumbnail{
220
+
221
+ position: relative;
222
+
223
+ z-index: 0;
224
+
225
+ }
226
+
227
+
228
+
229
+ .thumbnail:hover{
230
+
231
+ background-color: transparent;
232
+
233
+ z-index: 50;
234
+
235
+ }
236
+
237
+
238
+
239
+ .thumbnail span{ /*CSS for enlarged image*/
240
+
241
+ position: absolute;
242
+
243
+ background-color: lightyellow;
244
+
245
+ padding: 5px;
246
+
247
+ left: -1000px;
248
+
249
+ border: 1px dashed gray;
250
+
251
+ visibility: hidden;
252
+
253
+ color: black;
254
+
255
+ text-decoration: none;
256
+
257
+ }
258
+
259
+
260
+
261
+ .thumbnail span img{ /*CSS for enlarged image*/
262
+
263
+ border-width: 0;
264
+
265
+ padding: 2px;
266
+
267
+ }
268
+
269
+
270
+
271
+ .thumbnail:hover span{ /*CSS for enlarged image on hover*/
272
+
273
+ visibility: visible;
274
+
275
+ top: 0;
276
+
277
+ left: 60px; /*position where enlarged image should offset horizontally */
278
+
279
+
280
+
281
+ }
282
+
283
+
284
+
285
+ </style>
286
+
287
+
288
+
289
+ <script type="text/javascript">
290
+
291
+ var as = jQuery.noConflict();
292
+
293
+ as().ready(function() {
294
+
295
+
296
+
297
+
298
+
299
+ as("#signupForm").validate({
300
+
301
+
302
+
303
+ rules: {
304
+
305
+ name2: "required",
306
+
307
+ name1: "required",
308
+
309
+ email: {
310
+
311
+ required: true,
312
+
313
+ email: true
314
+
315
+ },
316
+
317
+ emailConfirm:{
318
+
319
+ required: true,
320
+
321
+ equalTo: "#email"
322
+
323
+ }
324
+
325
+ },
326
+
327
+ messages: {
328
+
329
+ name2: "ご記入ください。",
330
+
331
+ name1: "ご記入ください。",
332
+
333
+ email: "正しいemail address を記入してください。",
334
+
335
+ emailConfirm:{
336
+
337
+ required: "正しいemail address を記入してください。",
338
+
339
+ equalTo: "Email And Confirm Email Should be Same"
340
+
341
+ }
342
+
343
+ }
344
+
345
+ });
346
+
347
+
348
+
349
+
350
+
351
+ });
352
+
353
+ </script>
354
+
355
+
356
+
357
+ <style type="text/css">
358
+
359
+
360
+
361
+ #signupForm { width: 670px; }
362
+
363
+ #signupForm label.error {
364
+
365
+ margin-left: 10px;
366
+
367
+ width: auto;
368
+
369
+ display: inline;
370
+
371
+ color:#FF0000;
372
+
373
+ font-size:11px;
374
+
375
+
376
+
377
+ }
378
+
379
+ </style>
380
+
381
+
382
+
383
+ <?php wp_head(); ?>
384
+
385
+ </head>
386
+
387
+
388
+
389
+ <body <?php body_class(); ?> >
390
+
391
+
392
+
393
+ <?php if (function_exists('wptouch_switch')) wptouch_switch('<h2>', '</h2>'); ?>
394
+
395
+ ```
396
+
397
+
398
+
399
+ ```ここに言語を入力
400
+
401
+ front-page.php
20
402
 
21
403
  <?php get_template_part('header'); ?>
22
404