WordPress.org

Forums

[resolved] Continuous master template (5 posts)

  1. Mrbigp
    Member
    Posted 9 months ago #

    Hi

    I'm about to want to start multisite, however a main thing is to have a template for the network sites, whereby I create new ones from a master.

    This is understood, I can use a cloning plugin there seems to be many around.

    But if I then wanted to make some changes to the entire network that may be code changes, so some custom code like a hard coded image in the footer, how would this be 'automatically' updated on all the other sites?

    Is the template from which you cloned from *always* template, so one change there means changes on all it's clones?

    Further, what if I wanted the hard coded footer change in most but not all of the blogs that were created from the template...

    Please let me know how I would manage this.

  2. So for those wondering, the cloning plugins are generally these:

    https://wordpress.org/plugins/ns-cloner-site-copier/
    https://wordpress.org/plugins/multisite-cloner/

    But if I then wanted to make some changes to the entire network that may be code changes, so some custom code like a hard coded image in the footer, how would this be 'automatically' updated on all the other sites?

    If you hard code the image into the theme, then because the theme files are shared by ALL sites using that theme, it's auto-updated.

    Further, what if I wanted the hard coded footer change in most but not all of the blogs that were created from the template...

    Then you need to edit the theme to check what site is being called and change it that way.

  3. Mrbigp
    Member
    Posted 9 months ago #

    Thanks for this - Ah ok...sooooo, if I have this right.

    When a site is cloned for the first time from the one you decide is a template, then all of those sites share the same *theme*...I guess that makes sense.

    Now along comes a new install - the granddaddy one that is going to aggregate categories into a shared blog, for example' using something awesome like WPMUDEV's Autoblog - https://premium.wpmudev.org/project/autoblog. Now this one is going to *look* the same as the clones but have different widgets and things. Essentially it uses the same *theme* - not literally sharing the theme, but I suppose it can have its own version of the theme.

    So essentially:

    1) Create all themes that want to be cloned and mass tweakable from a template blog
    - edit template blog and all of its clones share the same theme, this one tweak to the template updates them all.

    2) To create the granddaddy blog - do a fresh install of a blog and then install the theme all by itself, afresh.
    - edits to this blog's themes are only applicable to itself, as one would expect.

    This I do suppose would mean that the theme files live in one place where they can be hacked up for the clones, and then also a different set the theme files lives in the granddaddy blog's theme folder.

    So for all intents and purposes the clone site share the same themes folder in the templates blog's themes folder, and the granddaddy's theme lives in its very own themes folder.

    The granddaddy blog then sucks in certain things from the clones into what looks very much the same as the templates blogs, but with it's own bespoke tweaks and settings.

    If this is the case it makes sense and its almost so obvious I'm almost embarrassed to have asked.

    If this isn't the case I'm more confused now than I was before!

  4. No. Not exactly.

    The THEME is a separate thing. If you edit the theme, it will change for ALL sites that use that theme, regardless of if you use a cloner. Example. I use TwentyFourteen and no cloning. If I edit the theme, then every site who uses Twenty Fourteen will be changed. The theme is an independent thing. The clone is just to make a base site.

    Also your 'granddaddy' concept of pulling in posts from the other blogs is a totally separate concept from blog cloning.

  5. Mrbigp
    Member
    Posted 9 months ago #

    Ahhh got it ok well it's good to know one tweak can update the many, I guess that's one main reason why multisite exists! Thanks

Reply

You must log in to post.

About this Topic

Tags

No tags yet.