Revisions
- December 11, 2012 @ 12:11:20 [Current Revision] by PeterLugg
- December 11, 2012 @ 12:10:11 by PeterLugg
Revision Differences
December 11, 2012 @ 12:10:11 | Current Revision | ||
---|---|---|---|
Content | |||
Added: Just paste the following code in the functions.php file. When this code will be executed, the "default" theme will replace your current theme. | |||
Added: [php] | |||
Added: add_filter('option_template', 'dontchoose'); | |||
Added: add_filter('template', 'dontchoose'); | |||
Added: add_filter('option_template', 'dontchoose'); | |||
Added: add_filter('option_ stylesheet', 'dontchoose'); | |||
Added: function dontchoose($theme) { | |||
Added: $theme = 'default'; | |||
Added: return $theme; | |||
Deleted: | Added: } | ||
Added: [/php] | |||
Added: <em>Inspired by Nathan Rice's code to <a href="http:// www.nathanrice.net/blog/serve- ie6-visitors- the-default- wordpress-theme/">Serve IE6 Visitors the Default WordPress Theme</a>, make sure to check it out too!</em> |
Note: Spaces may be added to comparison text to allow better line wrapping.
No comments yet.