如何合併兩個WordPress主題?
我現在在用A主題,然後看到B主題的主頁功能設計很好,於是我想在我的A主題里開一個頁面,用來盛放B主題的首頁,打開這個頁面以後就是以B主題首頁的那種形式來呈現內容,我該怎麼做呢?求大神指導
謝 @趙以雲 邀。 @睡醒頭髮總是翹著 君的回答非常好。我只能狗尾續貂補充幾句。由於題主沒有說明清楚具體要套用的頁面就一個還是很多,有多少數據需要套用?如果不能用JMT插件處理,根據不同情況可以有以下幾種方法:
假設題主要求的網頁要顯示動態內容(否則做個靜態網頁,用伺服器將相關指向 rewrite 轉移一下就行了)。
1. 需要整個目錄 B都按 B 主題顯示:直接在網站下再建立一個子 WordPress 輸出 B 目錄的內容。此時網站結構為: http://root.com/B/subdir-1...... 就是用一個另子站點來顯示B主題,但目錄結構是一致的,外面看不出來。當然如果是會員制網站,用戶資料庫同步管理又是另外一個話題了。
2. 就一兩個網頁需要這樣處理:找一個 Page Builder Plugin 仿幾個頁面即可。
3. 仿照B 主題模式,做一個頁面 Template 模板,創建內容時模板選仿照模板即可。
以上。多謝各位。哈哈,終於有可以回答的問題了。樓上CSS內嵌太麻煩,但是萬能的wordpress有一個插件也可以實現
不同文章、頁面、分類等等使用不同的主題, 叫 jonradio Multiple Themes。這是插件描述
jonradio Multiple Themes
Select different Themes for one or more, or all WordPress Pages, Posts or other non-Admin pages. Or Site Home.
Allows the Administrator to specify which Theme will be used on specific Pages, Posts, other non-Admin pages (such as Category or Archive pages) or Site Home; a Prefix feature allows a Theme to be selected based on the initial characters of its URL (「Prefix URL」). Also allows a Theme to be specified for All Pages, All Posts or Everywhere. In turn, even when a Theme is specified for All Pages, All Posts or Everywhere, a different Theme can still be specified for specific Pages or Posts.
Think what you could do if you could easily use more than one Theme on your WordPress web site or blog:
- Divide your site into Sections, each with its own unique look
- Style individual Pages, Posts, or other elements (Site Home, Category main page, Archive main page) with a different Theme
- Select a unique Theme for all Pages, Posts, Attachments, Category pages or Archive pages
- Make slight variations to a Theme, using Child Themes, for one or more Pages, Posts or other elements (Site Home, Category main page, Archive main page)
- Supports Multiple Stylesheets for Accessibility and other purposes (create one Child Theme for each Stylesheet)
- Test a new Theme on one or more Pages or Posts
- Convert to a new Theme a Page or Post at a time
- Host multiple mini-web sites on your WordPress site, each with a different Theme
- When a larger version of an image attachment is displayed, for example, when clicking on a gallery image thumbnail, use a different theme to display it, for one or all images attached to a Page or Post
Use with other Plugins: BuddyPress and Theme Test Drive plugins must both be Deactivated when jonradio Multiple Themes is Activated
Changing Theme Options (Widgets, Sidebars, Menus, Templates, Background, Header, etc.)?: See the FAQ (Frequently-Asked Questions) tab for important information on changing Options on Themes other than the Current Theme.
To select all Pages, Posts, Archives, Categories, etc. that begin with the same partial URL, a 「Prefix URL」 can be specified by selecting the Prefix checkbox when creating an entry on the Settings page for the jonradio Multiple Themes plugin. Restriction: the Prefix URL cannot contain all or part of a Query, which is the portion of a URL that begins with a question mark (「?」). Although the Prefix cannot contain a Query, URLs containing a Query will be matched by the Prefix.
Normally, if a Theme is not specified for a Page, Post, Site Home or other WordPress-displayed web page, such as Category or Archive display, the Current Theme specified in Appearance-Themes on the Admin panels will be used. The plugin has an Advanced Setting 「Select Theme for Everything」 that can be used to define a default Theme for the plugin to use instead of the WordPress Current Theme. This is useful for a Theme that has many frequently-used options that are much easier to access when it is the WordPress Current Theme, but there is another Theme to be used everywhere except for a few select Pages or Posts.
When selecting a Theme for Site Home or all or specific Pages, Posts or other non-Admin pages, the Theme must be shown in the list of Available Themes on the Appearance-Themes Admin panel. If necessary, install the Theme. In a WordPress Network (AKA Multisite), Themes must be Network Enabled before they will appear as Available Themes on individual sites』 Appearance-Themes panel.
I hesitate to use the term Theme Switcher to describe this plugin, because the term has so many meanings. The jonradio Multiple Themes plugin does not alter the standard WordPress options that define what Theme is used on your WordPress site. Instead, itdynamically(動態地) (and selectively) overrides that choice. Technical details aside, what this means is that deactivating(無效) or deleting the jonradio Multiple Themes plugin will instantly revert to the WordPress Current Theme that you have defined through the standard WordPress Appearance-Themes Admin panel.
For more details, see the WordPress Plugin Repository entry for this plugin, especially the FAQ and Installation tabs: WordPress ? jonradio Multiple Themes ? WordPress Plugins
For Support, click here to contact us or use the Support tab in the Plugin Repository entry.
If you wish to donate, click here to view the home page for all jonradio Plugins.
地址是jonradio Multiple Themes
想問下@卡夫卡君 使用這個插件如何讓某個頁面在使用某個主題但該頁面的菜單導航依然是全站使用的主題?試了下如果設定某個頁面(鏈接)應用某個主題的話,該頁面的菜單導航也一起變過去了..如果菜單不想變如何設置?
同問 ,如何把兩個wordpress的主題元素方便的合併成一個?
推薦閱讀:
※現有wordpress程序如何移植到SAE上面
※愛范兒、36氪等網站使用了 WordPress 排版的插件嗎?
※WordPress(網站) 是什麼?
※WordPress 做 SNS,購物這類商業網站如何?
※WordPress建站(美國主機)至少多少錢?
TAG:WordPress | WordPress主題 |