• I am running a multisite instalation using sub-directories.

    I am using one theme that I’d like to use for all of my subsites.

    I need to edit the code of the theme template, but display the changes only on the main site.

    The subsites should not be affected by the changes and use the default theme template.

    Can this be done ? How could I achieve that ?

    Many thanks ..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Joe Bloggs

    (@joe-bloggs)

    ok, so I think I came up with the {temporary} solution, but so far so good.

    I created a child theme and assigned this to the main site while assigning the sub-site with the main theme.

    I don’t think that I will be editing the template for the sub-site, so this could have the main theme assigned to it.

    This way I could edit the main site without touching the sub-site.

    My question is now however :

    If I decide to edit the sub-site also, I would have to assign the child theme to it aswell, but this would most probably show the changes I’ve done to the main site as I will be assigning the same child theme.

    So would I be able to create another child theme ? Let’s say Child-Theme-2 ??

    And maybe even third one if it was needed ?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You can have multiple children from the same parent theme, but not grandchildren themes. If you’re only changing CSS, consider a plugin like Jetpack which has a CSS editor. That makes per-site changes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit Template On Main Site Only’ is closed to new replies.