
內容簡介
該外掛程式旨在讓客戶或合作者在主題上線之前檢視新的主題(或多個主題)。 本外掛程式允許您選擇要預覽的主題,然後選擇可以看到該主題的使用者。其他所有人將看到網站所選擇的正常主題。該預覽的主題可以進行配置,並且該配置會單獨存儲,因此當該主題被另一個使用者預覽時,會使用已保存的配置。
預覽功能可供多個 WP 使用者角色使用,因此作者和編者也可以檢視主題,就像它是一個現成的網站一樣。
此外掛程式需要預覽使用者已登錄。
背景下配置主題
此外掛程式與大多數「主題切換器」外掛程式或主題自訂器預覽不同,因為它允許在上線之前完全配置預覽的主題。預覽主題的設置會單獨保存,所以當該主題切換時,所有設置都已就位。
子佈景主題
此外掛程式與使用子佈景的適用性相容。 您可以創建數個子佈景主題,並將它們預覽為不同的主題。
限制
此外掛程式目前無法與主題自訂器很好地協調。尤其是,它不會保存在自訂器中更改的主題的自訂配置。您需要使用“外觀”菜單中的特定項目來配置預覽主題。
此外掛程式不允許為每個主題設置不同的內容,因此您不能使用此外掛程式預覽內容更改。這包括頁面特定的佈局設置和由像是 Visual Composer 插件產生的佈局。然而,您可以修改預覽主題的模板檔案,這些更改不會影響公開主題。
菜單配置:您可以將現有菜單放置到由預覽主題定義的位置中,並且將會記住該位置,但您無法更改菜單本身,因為它們是相同的內容。如果您需要為預覽主題創建不同的菜單配置,請專門為此創建一個新菜單。然後,您可以在兩個主題之間切換,菜單配置將跟隨。
此外掛程式不允許不同的插件配置、啟用 / 停用狀態和設置。WordPress 插件配置在主要和預覽主題之間是相同的。
如果您的新主題需要重新構築內容或插件配置,則最好使用單獨的開發站點預覽新主題。
關鍵圖像來源
Bundesarchiv,B 145 Bild-F044576-0032 / Engelbert Reineke / CC-BY-SA 3.0 [CC BY-SA 3.0 de (http://creativecommons.org/licenses/by-sa/3.0/de/deed.en)], 透過 Wikimedia Commons
外掛標籤
開發者團隊
原文外掛簡介
This plugin was developed to allow a client or collaborators to see a new theme (or themes) before it goes live. The plugin allows you to select a theme to preview and then select the users that will see that theme. Everyone else will see the normal theme selected for the site. The previewed theme can be configured, with that configuration stored separately from the normal theme so when the theme is previewed by another user it will use the saved configuration.
Preview is available to several WP user roles, so Authors and Editors can also preview a theme as though it were a live site.
The plugin requires the previewing user to be logged in.
Configure a Theme Behind the Scenes
This plugin differs from most “theme switcher” plugins or the Theme Customizer preview in that it allows the previewed theme to be fully configured before going live. The settings for the previewed theme are saved separately, so when the theme is switched over, all the settings are in place.
Child Themes
This plugin is compatible with the use of child themes. You can create several child themes and preview them as separate themes.
Limitations
This plugin does not currently play well with the Theme Customizer. In particular, it does not store the customizations for a theme that has been changed in the Customizer. You need to use the specific items in the “appearance” menu to configure the previewing theme.
This plugin does not allow for different content for each theme, so you cannot preview content changes using this plugin. This includes page-specific layout settings and layouts generated by plugins such as Visual Composer. Previewing theme template files can be modified, however, and those changes won’t affect the public theme.
Menu configuration: you can place existing menus into locations defined by the previewing theme and that will be remembered, but you cannot change the menu itself without affecting the normal site menus because they are the same content. If you need a different menu configuration for your previewing theme, create a new menu for that purpose. You will then be able to switch back and forth and the menu configuration will follow.
The plugin does not allow for different plugin configurations, plugin activated/deactivated status, and settings. WordPress Plugin configurations are the same for the main and preview themes.
If your new theme requires you to restructure the content or plugin configuration, it may be best to preview your new theme using a separate development site.
Key Image Credit
Bundesarchiv, B 145 Bild-F044576-0032 / Engelbert Reineke / CC-BY-SA 3.0 [CC BY-SA 3.0 de (http://creativecommons.org/licenses/by-sa/3.0/de/deed.en)], via Wikimedia Commons
