Mô tả
Attractive front-end theme switcher/preview allowing demo of all themes, with menu and widget handling.
Usage
Add the shortcode [theme_catalog_select] to any page or post to display an attractive list of themes available to preview
Shortcode Attributes
- errors (true,false,null) default:false – Display only themes with errors. true to only show errors, false to only show non errors, null to show both Read More
- allowed (true,false,’site’,’network’,null) default:true – Display only allowed themes Read More
- screenshots (true, false, null) default:true – Display only themes that have screenshots. true to only show themes with screenshots, false to only show themes without screenshots, null to show both
- lazyload (true,false,integer) default:20 – whether to use lazyload. true to always use lazyload, false to never use lazyload, integer to use lazyload if at least specified amount of results are found.
- display_screenshot (true,false) default:true – Display screenshots
- display_name (true,false) default:true – Display names
- display_author (true,false) default:true – Display authors
- display_version (true,false) default:true – Display versions
- display_description (true,false) default:true – Display description
Menus
Menus can be created/mapped on a per theme basis and global menus can be created which will be used in the event that the menus are not mapped for the selected theme.
- Individual Theme Menus can be set up. To do so :
- Turn on “Apply in admin” under
Settings -> Theme Catalog
- Use the page you have the selector on to switch to the desired theme.
- Go to
Appearance -> Menus
and set up menus as you wish - Repeat steps 2 & 4 for all the themes you want to individually map.
- Turn off “Apply in admin” under
Settings -> Theme Catalog
- Turn on “Apply in admin” under
- Global Theme Menus can be created by creating menus named “theme_catalog_menu_1” “theme_catalog_menu_2” etc. Menus will be populated into loaded theme in the order they are encountered.
Widgets
Widgets can only be handled on a per theme basis. To do so :
- Turn on “Apply in admin” under
Settings -> Theme Catalog
- Use the page you have the selector on to switch to the desired theme.
- Go to
Appearance -> Widgets
and set up widgets as you wish - Repeat steps 2 & 4 for all the themes you want to individually map.
- Turn off “Apply in admin” under
Settings -> Theme Catalog
Issues
iThemes Builder themes and Artisteer themes (and I’m sure there are others) bypass WordPress’ wp_nav_menu function, so can not use global menus. You must use individual menu mapping for these.
TO DO
- Add ‘include’ & ‘exclude’ attributes
- Build a tool for bulk mapping theme menus.
- Allow sidebars (widget areas) to be created and mapped on a per theme basis or globally
Ảnh màn hình
Cài đặt
The Easy Way
- Install and Activate from
Plugins->Add New
in WordPress - Go to Step 4 in “Manually” section
Manually
- Upload
theme-catalog.zip
to the/wp-content/plugins/
directory - Unzip
theme-catalog.zip
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Optionally set up menus for each theme, and/or global menus (more details under description)
- Optionally set up widgets for each theme
- Place
[theme_catalog_select]
in your page or post
Hỏi đáp
- My theme screenshots are not loading!
-
Did you specify
screenshots='false'
ordisplay_screenshot='false'
?If not, there is a good chance your theme is not properly calling wp_footer(). To solve this problem, you need to either :
- Turn off lazy loading by adding
lazyload='false'
to your shortcode - load
lazyload
in your site’s header by going toSettings -> Theme Catalog
and change “Lazyload in header” to “yes”.
- Turn off lazy loading by adding
- What is “plugin prefix” in the settings?
-
This allows you to change the prefix used in the shortcode, url parameters, session variables and css classes. Changing it would reset all of your visitors back to your default theme, but would also require you to edit your shortcode. Unless you are having problems you should never need to change this.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Theme Catalog” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Theme Catalog” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
0.02
- Fixed settings menu not showing up for non multisite admins
- Use proper PHP open tag for compatability on more servers.
0.01
Initial release