WordPress Multisite Multiple child theme

The question:

I have a mulisite setup and I am using one theme for multiple sites in it and each site have a custom layout and design. So for that I need to create a child-theme. But I don’t know how to create multiple child theme for each site so I can add customization in each child theme style.css, footer.php, function.php, header.php

e.g

I am using theme canvas for all sites.
then I created canvas-child and customized it for site1 now I need to customize it for other site2 then how I can create one more child theme with current main theme canvas to effect customization on site2.

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

You can copy your canvas-child folder and call it canvas-child-2, or similar. Then open up style.css in canvas-child-2, and edit the Theme Name:. Do this for as many different child themes you need.

You will then need to enable the child themes for the sites you wish to use them on. Visit the Sites menu in your Network Dashboard, and click the edit link under one of the sites. Switch to the Themes tab and click on the Enable link under the name of the theme you wish to use on this site. Do this for all sites you wish to use a custom child theme on.

The final step is to activate the themes on the sites. Login to the site’s administration dashboard and visit the Themes menu. Click on the Activate link under the child theme you wish to use on this site. Do this for all sites you wish to use a custom child theme on.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment