這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Domain Theme

外掛說明

Domain Theme allows you to specify more then one domain name with your WordPress installation and optionally associate a specific theme for each domain. This enables you to present your site under multiple domain names. (i.e. www.mypersonalblog.com and www.myprofessionalblog.com). A specific theme template can be assigned to a specific domain. For instance, you can use this plugin for a personal blog that has a casual theme under one domain and and present the same data under a corporate theme that omits select categories (i.e. family photos, etc.). You will need to modify your DNS settings to point your domain name(s) to the same server to make this happen.

Known Issues:

  • Upgrade users from WordPress 2.6 to WordPress 2.6.1 who used version 1.2 may have incompatible domain data. Please delete and recreate your domain list.

  • All-In-One SEO users should delete their “Home title” setting otherwise it will overwrite the blog title settings in Domain Theme.

  • Please note that accessing wp-admin pages from any other domain name then your primary domain specified in ‘General Settings’ will cause the administration panel to report the ‘themed’ settings. Just remember to access your ‘General Settings’, ‘Presentation’, and ‘Domain Theme’ admin pages under your primary domain name if you want to make such changes.

  • Users before version 2.5 will have a minor UI issue on the Domain Theme control panel’s ‘delete all’ checkbox column. It will not check off all listed items.

  • The first item in the Domain Theme list cannot be deleted as it is the settings you have for your primary domain taken from the ‘General Settings’ and ‘Presentation-Theme’ page. Clicking it to edit will simply transfer you to the ‘General Settings’ page. This is on purpose.

  • Some users may have issues with their server variables SERVER_NAME versus HTTP_HOST. Simply uncomment the first line of code in the plugin if your additional domain names do not appear to work. See the comment on the first line of code.

螢幕擷圖

  • The Domain Theme control panel.

安裝方式

  1. Upload domainTheme.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Modify your DNS settings to point your domain name(s) to the same server.
  4. Go to the Domain Theme administration panel to add your domain names (i.e. www.example.com)

常見問題集

Can I specify a different Blog Title and Tagline for each domain name?

Yes. There are options to enter a Blog Title and Tagline that will override what is specified in ‘General Settings’ for a given domain name.

Can I use the same theme for more then one domain name?

Yes. Use the Add Domain form to specify a single domain name and select the theme to use from theme drop down menu.

Can I use a different set of widgets for each domain name?

No. Widgets are defined at the site level and will appear on all supported themes. However, almost anything is possible from within theme templates and you could just alter a theme template to omit or allow certain widgets manually.

How can I point my new domain name(s) to my existing site?

You will need to modify your DNS settings (and possibly server settings). This may require you to contact your ISP to ensure that your site allows multiple domain names per server.

使用者評論

2018 年 12 月 22 日
Hi I want to donate to this plugin for further development. Please respond ASAP. Thanks 🙂
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Domain Theme〉的開發相關工作。

參與者

將〈Domain Theme〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄