質問編集履歴
2
書式の改善
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -20,32 +20,7 @@
|
|
|
20
20
|
```PHP
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
<?php
|
|
24
|
-
//CSS
|
|
25
|
-
function wpbeg_script() {
|
|
26
|
-
wp_enqueue_style( 'google-webfont-style', '//fonts.googleapis.com/css?family=notosansjapanese' );
|
|
27
|
-
|
|
28
|
-
wp_enqueue_style( 'html5reset-1.6.1', get_template_directory_uri() . '/css/html5reset-1.6.1.css', array(), '1.0.0' );
|
|
29
|
-
|
|
30
|
-
wp_enqueue_style( 'style.css', get_template_directory_uri() . '/css/style.css?201808181', array(), '4.5.0' );
|
|
31
|
-
|
|
32
|
-
wp_enqueue_style( 'style_tb', get_template_directory_uri() . '/css/style_tb.css?20180818', array(), '1.0.0' );
|
|
33
|
-
|
|
34
|
-
wp_enqueue_style( 'style_sp', get_template_directory_uri() . '/css/style_sp.css?20180818', array(), '1.0.0' );
|
|
35
|
-
|
|
36
|
-
wp_enqueue_script( 'intavew', get_template_directory_uri() . '/js/jquery.inview.js');
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
add_action( 'wp_enqueue_scripts', 'wpbeg_script' );
|
|
40
23
|
|
|
41
|
-
//imagesフォルダ適用
|
|
42
|
-
function replaceImagePath($arg) {
|
|
43
|
-
$content = str_replace('"images/', '"' . get_bloginfo('template_directory') . '/images/', $arg);
|
|
44
|
-
return $content;
|
|
45
|
-
}
|
|
46
|
-
add_action('the_content', 'replaceImagePath');
|
|
47
|
-
|
|
48
|
-
|
|
49
24
|
//求人応募エラー文言
|
|
50
25
|
function my_validation_rule( $Validation, $data, $Data ) {
|
|
51
26
|
$Validation->set_rule( '希望職種', 'required', array( 'message' => '※どれか1つを選択して下さい' ) );
|
1
誤字
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
//問い合わせエラー文言
|
|
5
5
|
をfunction.phpに付け足すと
|
|
6
6
|
|
|
7
|
-
Fatal error: Cannot redeclare my_validation_rule() (previously declared in /app/public/wp-content/themes/
|
|
7
|
+
Fatal error: Cannot redeclare my_validation_rule() (previously declared in /app/public/wp-content/themes/AAA/functions.php:31) in /app/public/wp-content/themes/AAA/functions.php on line 59
|
|
8
8
|
|
|
9
9
|
となります。
|
|
10
10
|
1つめの//求人応募エラー文言だけだとならないのですが
|