I have multiple installs of WordPress and WordPressMU running in the same system, and I want them to share a common Themes. I’ve been diligently updating the same theme in multiple directories… and frankly it sucks. Then I came across this forum post and was blown away!
So, I’ve implemented a plugin that allows you to set an absolute or relative path to a common themes directory.
Installation: Download the code from the link below. Rename the file to common-themes.php and place it in your plugins directory. Activate it.
Download: You can get a copy of the code here.
Usage: Set options in “Options->Theme Root Options”. Enjoy.
Note: current release 0.42.1 includes a fix to a small bug I found related to theme names which match a part of the path.
Comment by zappoman — May 27, 2007 @ 8:49 pm
Thanks man for WordPress MU
Comment by News Partner — June 20, 2007 @ 1:18 pm
Thanks for WordPress MU
Comment by John Michele — July 6, 2007 @ 7:02 pm
I love the idea of this plugin, but I’m having trouble implementing it. When I check the absolute path checkbox and enter an absolute path, it defaults to “/wp-content/themes/default/style.css”. Any ideas?
Also, what’s the purpose of the “This folders URI is..” field? Seems that it reverts back to “wp-content/themes” anytime I try to change it.
Comment by Tom R — August 8, 2007 @ 7:43 pm
[...] several installs of WordPress andor WordPress-MU and want to have only one themes directory, the common-themes plugin might be the answer for [...]
Pingback by Use one Themes Directory for Multiple of WordPress and WordPress-MU | Ring Of Blogs — October 17, 2007 @ 7:33 pm
Well, couldn’t get it working with WPMU 2.6 - gives me an error when I try to change options.
Also, a good idea is to make themes work from different subdirectories of wp-content/themes/*
Check this: http://mu.wordpress.org/forums/topic.php?id=9130
Comment by Mike — August 8, 2008 @ 3:46 pm