update
This commit is contained in:
25
README.md
25
README.md
@@ -1,4 +1,25 @@
|
||||
# website-products
|
||||
|
||||
官网产品页面
|
||||
https://www.alicorns.co.jp/
|
||||
官网产品页面的代码(目前尚未实际使用,仅仅用于留档)
|
||||
|
||||
|
||||
|
||||
## 基本配置
|
||||
|
||||
`react-product-loader`
|
||||
- 用于在 wordpress 中引入 react 页面的 pluigin
|
||||
- 因为使用 coze 生成的代码几乎都是 react 的
|
||||
- 放置在 plugin 文件夹下
|
||||
- `wp-content/plugin/react-product-loader`
|
||||
|
||||
`page-react-template.php`
|
||||
- 用于展示产品的模板页面,不使用官网默认的模板
|
||||
- 放置在当前使用的模板下面:
|
||||
- `wp-content/themes/skyline-wp`
|
||||
|
||||
## 产品页面
|
||||
|
||||
- 产品的页面放在 `wp-content/products/react-apps` 下
|
||||
- 在 `固定ページ` 中创建页面,使用 `ショートコード` 引入
|
||||
- `[react_app app_name="alisurvey"]`
|
||||
- 其中 `app_name` 是文件夹的名字
|
||||
Reference in New Issue
Block a user