Forums

localise header + footer, wp3 multisite (8 posts)

  1. cmcp
    Member
    Posted 1 year ago #

    I am setting up a system that will allow me to host multiple domains from the one wordpress install.

    I am able to style each blog / site using a css override, so they all use the same theme, but have their own CSS to make it look different.

    I now have a requirement for custom HTML in the header and or footer of some sites.

    Am I best to

    A) set up each site with it's own theme (which i think would be inefficient for scaling - i plan to use this for hundreds of client websites)

    B) deploy some kind of localisation plugin that would allow me to use a local header / footer per site.

    ?
    -----------------------------------------------

    I'm certain this problem will have arised before, but I can't find anything with the search or plugins.

  2. Totally untested, off the cuff of my head thought.

    B can be done with a theme that does a bit of a PHP loop for which site you're in and spits in a different header file... Make header-1.php through header-100.php, for example, and customize those. Then in header.php, have it include header-SITENUMBER.php :)

    Mind, it all depends on how MUCH you need to customize the html.

  3. Andrea_r
    team pirate
    Posted 1 year ago #

    I would use a theme framework that lets you do this from the backend.

  4. Oh sure, if you wanna take the EASY way ;)

  5. cmcp
    Member
    Posted 1 year ago #

    Andrea do you mean create a theme framework from scratch or are you aware of an existing system that is in the right direction of localising?

  6. Andrea_r
    team pirate
    Posted 1 year ago #

    Localization means language packs. :)

    If you mean "make some parts site specific" read on....

    I meant YES there are exisiting frameworks to help. (Genesis comes to mind, yes it's paid. It has a Simple hooks plugin that allows you to replace - from the backend - and area in the theme with a hook, that will be site specific.)

  7. cmcp
    Member
    Posted 1 year ago #

    Ah right ok, I'm with you on the jargon now.

    I am after site specific header and site specific footer.

    I shall look into genesis and simple hooks. Do you know if these work with multisite?

    :)

  8. Andrea_r
    team pirate
    Posted 1 year ago #

    Yes, cuz I test it on sites in the network. :)

    wpmututorials.com is a mapped domain in a network, using a child theme of genesis & the simple hooks plugin to make changes from the admin area.

    ronandandrea.com uses a *different* child theme of Genesis.

    These are both sites in the same network. Same db. Same install.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.