百度空间 | 百度首页 
 
查看文章
 
wordpress主题预览与切换插件
2009-03-14 01:09

发布主题时都会有预览,不知道预览是怎么做的呢?

可以使用http://wordpress.org/extend/plugins/theme-preview/这个theme preview插件。

还可以使用theme switcher等插件,还有http://wordpress.org/extend/plugins/theme-test-drive/都是不错的插件。

1. Upload the theme-preview folder and its contents to your wp-contents/plugins directory.
2. Activate in the Plugins menu.
3. Visit your site with a special parameter added to the URL

Add query variables preview_theme and/or preview_css to your query string. For example, if you have a theme named "My Theme", which is installed in your wp-content/themes/my-theme directory, add the theme's directory name to your URL like this:

http://example.com/index.php?preview\_theme=my-theme

Sometimes, you create a new look for your site by just making new CSS, but you keep the existing PHP files intact. In that case, you con use the preview_css variable instead of preview_theme, or use them both together, like this:

http://example.com/index.php?preview\_theme=default&preview\_css=my-theme


类别:wordpress插件 | | 添加到搜藏 | 分享到i贴吧 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2010 Baidu