Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/rhino-007/wp-r1-toolkit/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
工业产品站 WordPress 一站式工具包 — 插件 + FSE 主题,激活即用。
包含模块
| 模块 | 说明 |
|---|---|
| R1 Product Manager | 自定义产品 CPT (r1_product)、分类法、扁平化 URL、图集、SEO 字段 |
| R1 SEO Meta | 页面/文章/分类/产品的 TDK 编辑器与前端 <meta> 输出 |
| R1 Search | 导航栏搜索图标 + 全屏搜索覆盖层,短代码 [r1_search] |
| R1 Form Engine | 防注入表单引擎、Webhook 推送、邮件转发、CSV 导出 |
| 极速重定向 | 轻量 301 重定向管理,支持批量导入,零前端资源加载 |
| 监控代码注入器 | 全局/指定页面注入 Head & Body 监控代码(GA、GTM 等) |
内置主题:R1 Industrial (FSE)
插件内置 R1 Industrial 全站编辑(FSE)Block 主题,零外部依赖。
- 可视化编辑:后台 → 外观 → 编辑器,拖拽编辑所有模板
- 代码编辑:编辑器右上角 ⋮ → 代码编辑器
- 快捷入口:外观 → Edit Header / Edit Footer / Edit Styles
主题功能
| 功能 | 说明 |
|---|---|
| 产品展示 | 产品画廊、SKU、PDF 下载、分类面包屑 |
| 博客系统 | 文章卡片网格、浏览量统计、自动目录 |
| 分类归档 | 分类封面 Hero、排序、多级分类树 |
| 搜索结果 | 搜索卡片列表、分页 |
| 询盘表单 | 弹窗/内嵌表单,默认表单自动创建 |
| SEO | TDK 编辑、扁平化分类 URL、浏览量追踪 |
自定义 Blocks(11 个)
| Block | 功能 |
|---|---|
r1/product-hero |
产品画廊 + SKU + PDF + 询价按钮 |
r1/product-breadcrumbs |
产品多级面包屑 |
r1/product-grid |
产品卡片网格 |
r1/category-hero |
分类封面 Hero + 面包屑 |
r1/category-content |
分类 term meta 内容块 |
r1/category-sidebar |
递归分类树(可折叠) |
r1/footer-categories |
Footer 分类列表 |
r1/top-posts |
按浏览量排序文章 |
r1/post-views |
浏览量显示 |
r1/auto-toc |
自动目录生成 |
r1/shortcode-wrapper |
短代码包装器 |
系统要求
- WordPress 6.1+
- PHP 7.4+
安装
方式一:手动上传
- 下载本仓库并解压,将
r1-toolkit文件夹上传至wp-content/plugins/ - 后台 插件 页面激活 R1 Toolkit
- 插件会自动安装并切换 R1 Industrial 主题
方式二:Git Clone
cd wp-content/plugins/
git clone https://github.com/Rhino-007/wp-r1-toolkit.git r1-toolkit
激活后后台 R1 Toolkit 菜单可查看模块运行状态和主题状态。
重新安装主题
如果主题文件需要更新,进入 R1 Toolkit → 主题操作 → 重新安装 R1 主题 即可。
目录结构
r1-toolkit/
├── r1-toolkit.php # 插件主入口
├── README.md
├── includes/
│ ├── product-manager.php # 产品管理
│ ├── seo-meta.php # SEO 元数据
│ ├── search.php # 搜索覆盖层
│ ├── form-engine.php # 表单引擎
│ ├── my-simple-redirects.php # 301 重定向
│ └── monitor-code-injector.php # 监控代码注入
└── bundled-theme/
└── r1-theme/ # FSE Block 主题(激活时自动安装)
├── style.css
├── theme.json # 全局样式配置
├── functions.php
├── assets/css/global.css # 全局样式
├── blocks/ # 11 个自定义 Blocks
├── templates/ # 8 个页面模板
└── parts/ # 4 个 Template Parts
快速使用
| 功能 | 路径 |
|---|---|
| 产品管理 | 后台 → 所有产品 |
| 表单管理 | 后台 → 所有表单 |
| 询盘线索 | 后台 → 所有线索 |
| 产品分类 | 后台 → 产品分类 |
| 重定向 | 后台 → 重定向设置 |
| 监控代码 | 后台 → 监控代码注入 |
| 编辑模板 | 外观 → 编辑器 |
| 编辑 Header | 外观 → Edit Header |
| 编辑 Footer | 外观 → Edit Footer |
| 编辑样式 | 外观 → Edit Styles |
短代码
[r1_search]— 搜索按钮 + 全屏搜索覆盖层[r1_popup_form id="X"]— 弹窗表单[r1_popup_form id="default" text="Get a Quote"]— 默认弹窗表单[r1_form id="X"]— 内嵌表单[r1_form id="default"]— 默认内嵌表单