Linux 软件免费装
Banner图

Keep My Theme

开发者 swissspidy
更新时间 2015年4月24日 03:23
PHP版本: 3.4 及以上
WordPress版本: 4.2
版权: GPLv2 or later
版权网址: 版权信息

标签

Post posts theme template content history themes Style stylesheet archives

下载

1.0.0

详情介绍:

Many of us have been blogging for many years. It happens regularly that we change WordPress themes. But when we do that, we loose the zeitgeist of the posts that were once written to perfectly fit the design of that theme. Keep My Theme detects theme changes and always displays your single posts with the theme active at the time of writing. Of course the theme needs to be installed in order for this to work. Using some switch_theme() trickery, widgets and menu settings will be preserved. This doesn't guarantee perfectly styled posts though, so make sure to do some testing first. When you deactivate the plugin, everything will go back to normal. Uninstalling deletes the theme change history. Have a look at the FAQ to see how you can use this plugin with older posts. See this blog post for further information about the plugin. Original idea by Christian Leu.

安装:

  1. Upload the keep-my-theme folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Switch your theme and publish a new post.
  4. Switch your theme back and visit that post. It should use the previous theme.

屏幕截图:

  • Each post uses the theme that was active when it was initially published.
  • Your homepage and other areas of the website keep the regular theme.

常见问题:

I published a post with a different theme active, but it is using my default theme

Check if the theme is still installed in WordPress. The plugin can't activate a theme that isn't available anymore.

What happens to posts published before I installed the plugin?

Good question! You can use the keepmytheme_history filter to let the plugin know which themes were active a couple of years ago. Example: ` function change_keepmytheme_history( $history ) { $history[ strtotime( '2010-08-01' ) ] = 'default', // I've used the old default theme after August 1st, 2010. $history[ strtotime( '2014-01-01' ) ] = 'twentyfourteen' // I've used Twenty Fourteen after January 1st, 2014. return $history; } add_filter( 'keepmytheme_history', 'change_keepmytheme_history' ); ` Note: You should put this snippet in a new (must-use) plugin or your current theme's functions.php file.

更新日志:

1.0.0