[WordPress] 外掛分享: FameTheme Demo Importer

前言介紹

  • 這款 WordPress 外掛「FameTheme Demo Importer」是 2016-09-20 上架。
  • 目前有 40000 個安裝啟用數。
  • 上一次更新是 2025-04-16,距離現在已有 18 天。
  • 外掛最低要求 WordPress 4.5 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

shrimp2t | famethemes |

外掛標籤

import | oneclick | demo data | famethemes |

內容簡介

這款 WordPress 外掛是官方的 FameThemes 主題,一鍵匯入主題的範例內容、小工具與設定。

如有需要,可以到 https://www.famethemes.com/ 取得免費支援。

新增主題支援。
更改預設範例的 GitHub 儲存庫。
apply_filters( 'demo_contents_github_repo', self::$git_repo );

將主題新增至預覽列表
apply_filters( 'demo_contents_allowed_authors', array('famethemes' => 'FameThemes','daisy themes' => 'Daisy Themes'};

新增主題範例支援。

在 GitHub 儲存庫中建立新的主題範例目錄 username/repo-name/theme-name。

支援單一主題多個範例

在 GitHub 儲存庫中建立新的主題範例目錄 username/repo-name/theme-name。
建立新的 JSON 檔案,並命名為 demos.json,在此加入範例清單。
建立名為 demos 的新範例目錄。
在新目錄中新增您的新範例 child-demo,例如完整路徑為 username/repo-name/theme-name/demos/child-demo,並放置 dummy-data.xml 與 config.json。

匯出範例 XML

轉到管理畫面中的「工具」>「匯出」

匯出 config.json

在管理畫面中,若使用者有「匯出」權限,請於當前網址中添加 ?demo_contents_export。
範例: https://example.com/wp-admin/?demo_contents_export

原文外掛簡介

Import your demo content, widgets and theme settings with one click for FameThemes official themes.
Get free support at https://www.famethemes.com/

Add Support for your themes.
Change Default Demo GitHub Repository.
apply_filters( 'demo_contents_github_repo', self::$git_repo );

Add theme to listing preview
apply_filters( 'demo_contents_allowed_authors', array('famethemes' => 'FameThemes','daisy themes' => 'Daisy Themes'};

Support demo for a theme.

Create new theme demo dir in GitHub repo username/repo-name/theme-name.

Support multiple demos for a theme.

Create new theme demo dir in GitHub repo username/repo-name/theme-name.
Create new json file and name it demos.json, add list demos here.
Crate new demo dir and name it demos.
Add your new demo in new dir child-demo, so we have full path like this: username/repo-name/theme-name/demos/child-demo and put file dummy-data.xml and config.json

Export Demo XML
In Admin screen go to Tools -> Export
Export config.json
In Admin if user has cap export, add ?demo_contents_export in current url.
Example: https://example.com/wp-admin/?demo_contents_export

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「FameTheme Demo Importer」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.0.2 | 1.0.3 | 1.0.7 |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon