Remote parent theme (absolute or relative paths)?
-
Hi,
Just wondering if what I want to do is easily doable, or what the best way to achieve the result is.
I have two different wordpress installs, I want to use a single parent theme for both of them (so I can just update that one instance), and then child themes to customise each – one’s child will be using functions.php to remove certain post categories from the home page and rss feed, the other’s will be to change CSS properties.
All the tutorials I’ve read assume parent and child themes are in the same wp-content/themes directory as the parent. Is there a correct syntax for the child theme to route an absolute or relative URL to a parent in a different directory?
Can you do something like:
- /public_html/site_one/wp-content/themes/parent_theme
- /public_html/site_one/wp-content/themes/child_theme
- /public_html/site_two/wp-content/themes/child_theme
Is it just a case of making the Template: value in the child CSS:
Template: ../../../../site_one/wp-content/themes/parent_themeOr, would it need to be an absolute URL:
Template: https://www.theWebSite.com/site_one/wp-content/themes/parent_themeFailing that, can you symlink the parent theme’s directory from the first site to the second?
Thanks.
The topic ‘Remote parent theme (absolute or relative paths)?’ is closed to new replies.