I have 15 different wordpress sites installed on my server. They are independent installations , not multisite. I have developed a parent theme and copied it in all sites. Now whenever I have to make a change in parent theme, I have to access parent theme of all sites and make changes in each theme. Is it possible that I can globalize this parent theme such that I do change on one place and it reflects on all 15 sites (Without using Multisite feature). Though I wrote a php script that copies parent theme in all sites but not satisfied since I have to call that script everytime.
|
|
Create a separate directory and a (sub) domain for your themes. Now let all your installations use the new theme root. Or just do the same for plugins to manage all plugins from one place too. Registering a new theme root is not possible with constants, you will need a plugin like this:
Be aware there is a bug in the WordPress’ theme updater that doesn’t let you update themes from the wordpress.org directory when you are using a custom theme directory. You have to run the updates for such themes either manually, or use my patch from Ticket #22501 until WordPress 3.6 is out. |
|||
|
|
|
Assuming you are on linux and all the sites are on one server you can use symbolic links If your deployment location of the theme is /home/me/mytheme add an symbolic link in each site's theme directory to point to it /home/site1/wp-content/themes/mytheme -> /home/me/mytheme Once done every time apache will access the file /home/site1/wp-content/themes/mytheme/x.php the OS will load the file /home/me/mytheme/x.php, therefor a change in the /home/me/mytheme/x.php file will have an immediate impact in all of the sites. |
||||
|
|