質問編集履歴
3
functions\.phpを修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
ob_start();//すべての出力をバッファに取り込む
|
29
29
|
require($ss_dir . '/inc/custom-styles.php');// custom-style.phpファイルを取得する
|
30
30
|
$css = ob_get_clean();//出力を変数に格納した後、バッファをフラッシュする
|
31
|
-
file_put_contents($ss_dir . '/layouts/custom-styles.css', $css, LOCK_EX);
|
31
|
+
file_put_contents($ss_dir . '/layouts/custom-styles.css', $css, LOCK_EX);//cssファイルとして保存する
|
32
32
|
}
|
33
33
|
add_action( 'acf/save_post', 'generate_options_css', 20 );//出力を解析し、保存時にCSSファイルを書き込む
|
34
34
|
```
|
@@ -63,7 +63,7 @@
|
|
63
63
|
ob_start();//すべての出力をバッファに取り込む
|
64
64
|
require($ss_dir . '/inc/custom-styles.php');// custom-style.phpファイルを取得する
|
65
65
|
$css = ob_get_clean();//出力を変数に格納した後、バッファをフラッシュする
|
66
|
-
file_put_contents($ss_dir . '/layouts/custom-styles.css', $css, LOCK_EX);
|
66
|
+
file_put_contents($ss_dir . '/layouts/custom-styles.css', $css, LOCK_EX);//cssファイルとして保存する
|
67
67
|
}
|
68
68
|
add_action( 'acf/save_post', 'generate_options_css', 20 );//出力を解析し、保存時にCSSファイルを書き込む
|
69
69
|
```
|
2
カスタマイズ箇所と使用環境を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -106,12 +106,14 @@
|
|
106
106
|
Advanced Custom Fields PRO:v5.5.10
|
107
107
|
PHP version:v7.0.9
|
108
108
|
サーバー:エックスサーバー
|
109
|
+
php.ini:allow_url_fopenとallow_url_includeを共に**on**にしてあります。
|
110
|
+
WWWありとなし、共に全ページ.htaccessにてSSL化してあります。
|
109
111
|
|
110
112
|
[カスタマイズ箇所]
|
111
113
|
wp-config.php内にてwp-contentフォルダをcontentに変更
|
112
|
-
site_urlとhome_urlを変更
|
114
|
+
site_urlとhome_urlを変更(サブドメインを使用)
|
113
|
-
site_url:https://〇〇〇.com/wp
|
115
|
+
site_url:https://abc.〇〇〇.com/wp
|
114
|
-
home_url:https://〇〇〇.com
|
116
|
+
home_url:https://abc.〇〇〇.com
|
115
117
|
|
116
118
|
**作業途中で発生した問題点**
|
117
119
|
---
|
1
Advanced Custom Fieldsのバージョンを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -102,7 +102,8 @@
|
|
102
102
|
**使用環境とカスタマイズ箇所**
|
103
103
|
---
|
104
104
|
[使用環境]
|
105
|
-
Wordpress
|
105
|
+
Wordpress Version:v4.7.3
|
106
|
+
Advanced Custom Fields PRO:v5.5.10
|
106
107
|
PHP version:v7.0.9
|
107
108
|
サーバー:エックスサーバー
|
108
109
|
|