• Resolved DAZDOREY

    (@dazdorey)


    Have I got this right?

    In the Themes folder, I duplicate the Twenty Ten folder and rename it Twenty Ten-child. So I end up with 2 Theme folders (Twenty Ten and Twenty Ten-child)
    I, then, go into the css file and rename the theme information the same way as Twenty Ten-child.
    Do I also changed the name to my name?

    Is it as simply as this?

    Thanks so much!
    DAZ

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You need not duplicate any folders.
    Here are the steps better than I can explain
    https://codex.www.ads-software.com/Child_Themes#Example_of_a_basic_Child_Theme

    If you only want to change the CSS, then you only need style.css in theme-child. Style.css is the only required file for a child theme.

    I use the following:

    /*
    Theme Name: Call it whatever you want
    Author: Your Name
    Description: Child theme, and anything else you want
    Author URI: your URL, you don't have to add this.
    Template: themename
    */
    
    @import url(../theme/style.css);

    Then I add my custom CSS below that, and it overrides the old CSS. Any files you don’t add to your child theme just default to the original themes files ??

    It is worth looking at the link Andrew posted, to get a better idea of what’s going on.

    Thread Starter DAZDOREY

    (@dazdorey)

    Thanks so much for your help!

    Thread Starter DAZDOREY

    (@dazdorey)

    ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Making a Child theme’ is closed to new replies.