- This topic has 7 replies, 2 voices, and was last updated 1 year, 10 months ago by David.
-
AuthorPosts
-
May 19, 2022 at 5:08 am #2225296Walter Schwarz
To just manage css-files at one location centralized to use these in several GP-installations I insert the following @import-links.
/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Default GeneratePress child theme
Author: Tom Usborne
Author URI: https://tomusborne.com
Template: generatepress
Version: 0.1
*/@import url(https://xyz.de/gp-child/master.css);
@import url(https://xyz.de/gp-child/design.css);For sure it is not really elegant. Is there a better solution to manage css-files stored in the path “/var/www/vhosts/xyz.de/httpdocs/wp-content/themes/generatepress_child” and have them linked via @import just once in every style.css of every GP-installation?
What about individual php-files like content-page.php, functions.php and others? Any idea to just manage these at one location and have them linked anyhow?
Manually importing these at every GP-installation is no solution – this would result in confusing update attempts and conflicts in version management.
Thank you for any idea to realize centralized file management,
WalterMay 19, 2022 at 6:00 am #2225359DavidStaffCustomer SupportHi there,
you may want to consider using GitHub for you repository. And then use a service or plugin to Push any changes to your WP installs.
Found some info in the article:
https://wpmudev.com/blog/syncing-git-wordpress/
The WP Pusher plugin looks interesting.
May 19, 2022 at 6:27 am #2225396Walter SchwarzThank you David for the hint.
Unfortunately I have no experience with github and the like. But I’ll figure it out.
I would prefer a solution on my provider’s server and putting links on it. I want to keep my dependencies low.WP Pusher would be fine, if it would transmit files from one GP installation to others …
Many thanks again – and maybe there are other solutions,
WalterMay 19, 2022 at 7:11 am #2225434DavidStaffCustomer SupportApart from WP Multisite installs i don’t think there is a way to ‘centralize’ template files. You might want to ask on our FB group to see if any smart person has an idea 🙂
May 19, 2022 at 12:21 pm #2225905Walter SchwarzLooks like I have found a solution using SymLinks (Hard Link).
I will see if it’s practical and stable.Thanks,
WalterMay 20, 2022 at 1:41 am #2226293DavidStaffCustomer SupportAwesome – glad to hear that!
May 22, 2022 at 3:01 am #2228319Walter SchwarzUp to now symlinks/hard links seem to work – thanks to having server access to the root.
But I have to handly carefully file modification …Thank you,
WalterMay 23, 2022 at 12:39 am #2229143DavidStaffCustomer SupportThats great to hear … thanks for taking the time to feedback!
-
AuthorPosts
- You must be logged in to reply to this topic.