Splitting CORE WordPress files from THEME?
-
Not sure if this is the correct area to post this question, but here goes nothing…
I’m creating a WordPress site for a client who is in a large company and has nothing to do with the technology department. I got some info about how I need to integrate the WordPress site into their system. I’m using the latest version of WordPress with a premium theme purchased on ThemeForest.net.
Can anyone tell me if it will not be possible to integrate a standard WordPress site with a premium theme (and child theme) into such a system as outlined below? Any feedback would be much appreciated. Thanks.
WPMGPress File Structure
We no longer use the traditional WordPress structure (everything in the [docroot]/wordpress directory) and have split the CORE WordPress files into their own folder, /var/www/dev.wpmgpress.example.com/docroot/wpmgpress, which is separate from files specific to a given site which are now in the /var/www/dev.wpmgpress.example.com/docroot/site-content folder.WPMGPress allows for two plugins folders. One in site-content (/var/www/dev.wpmgpress.example.com/docroot/site-content/plugins); the other is in the core section (/var/www/dev.wpmgpress.example.com/wpmgpress/wpmg-plugins).
GitHub Repository Structure
The connection to GitHub is done by connecting to three different repositories. The WPMGPress core repo, the WordPress base install, and the site’s own repository.WPMGPress Core Repository
Connecting to a site via a GIT submodule, the core repository contains the WordPress core files as well as some third-party plugins and all of the various WPMGPress plugins.WordPress Base Install Repository
Used when initially setting up a site, this repository contains the file structure used on all versions of WPMGPress. Within that is a default Master Theme in the Themes folder and some third-party plugins inside of the plugins folder. We maintain a connection to this repository via a remote “upstream”. With this connection we can update files in the base install and send those changes to the individual sites.Individual Site Repository
This repository contains all files which are unique to an individual site.
- The topic ‘Splitting CORE WordPress files from THEME?’ is closed to new replies.