• Resolved hadenp

    (@haden-peterson)


    Can I have separate instances of a child theme for my blogs?

    I have my original blog, localhost/blog and a second blog, localhost/blog/linda. All the WordPress files live in localhost/blog and I’ve customized a theme (Coraline) as a childofCoraline there.

    As Network Admin, I’m able activate the child theme for blog/linda but I think that changes that I make will apply to both blogs, since the child files live in the ‘parent’, /blog.

    What do I need to have a separate set of customizations i.e (child theme) apply to blog/linda? Create a sub directory linda and install a separate Coraline there and then make my customizations to the stylesheet, header, footer etc?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    No, just make another child theme for the linda blog.

    Thread Starter hadenp

    (@haden-peterson)

    Thanks, but what does ‘make a new child theme’ entail?

    My original child theme files are in blog/wp-content/themes/childofCoraline. Where should I place new child theme files so that WP differentiates it from the first child theme?

    Currently, there isn’t a linda folder and I’m wondering how this works.
    Thanks.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    You are using multisite in sub-directory mode, right? Don’t create a /linda directory. Multisite will take care of it for you virtually.

    As for new a child theme directory, try blog/wp-content/themes/stepchildofCoraline 😉 Remember to change the Theme Name: in the new style.css file to something new and unique.

    As long as it’s in a different directory than the original child directory then once you activate it in your network, you’ll be able to use it on localhost/blog/linda.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Thread Starter hadenp

    (@haden-peterson)

    Great! I will try your suggestion and yes I’m in sub-directory mode.

    Question: Theme Name: is it read by WP or just so that the developer can keep track of which child theme is being worked on?
    Thanks!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Both.

    The folder name should be specific (I usually name them for the blog I’m working on, like 2011-ipstenu) and the internal theme name should be something so you know what it is, and so the end user knows too 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Separate Instances of a Child Theme?’ is closed to new replies.