Forums

[resolved] Separate Instances of a Child Theme? (7 posts)

  1. hadenp
    Member
    Posted 4 months ago #

    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?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

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

  3. hadenp
    Member
    Posted 4 months ago #

    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.

  4. 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.

  5. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

  6. hadenp
    Member
    Posted 4 months ago #

    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!

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    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 :)

Reply

You must log in to post.

About this Topic