Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #680848

    Peter Fae
    Participant

    Hey. I want to experiment with different Child Themes. Can I just copy the Child Theme and give it another name?

    #680855

    Rupok
    Member

    Hi there,

    Thanks for writing in! You can use multiple child theme for a parent theme but make sure to use different name on style.css to avoid conflict.

    Cheers!

    #680873

    Peter Fae
    Participant

    What should the different name in style.css be?

    Should the name of the theme be different * and * the different name in style.css?

    Can you be more specific please?

    #680885

    Rue Nel
    Moderator

    Hello There,

    There should be NO changes in the parent X theme. In your child theme, the contents of the style.css should look like this:

    /*
    
    Theme Name: X – Child Theme
    Theme URI: http://theme.co/x/
    Author: Themeco
    Author URI: http://theme.co/
    Description: Make all of your modifications to X in this child theme.
    Version: 1.0.0
    Template: x
    
    */

    And if you have created another child theme like my-child-theme which you have placed in wp-contents/themes/my-child-theme, the name of the child theme in the wp-contents/themes/my-child-theme/style.css would probably be like this:

    /*
    
    Theme Name: My Child Theme
    Theme URI: http://theme.co/x/
    Author: Themeco
    Author URI: http://theme.co/
    Description: Make all of your modifications to X in this child theme.
    Version: 1.0.0
    Template: x
    
    */

    For more information about child themes, please check this out:
    https://community.theme.co/kb/how-to-setup-child-themes/
    https://codex.wordpress.org/Child_Themes

    Hope this helps.