• I didn’t realize it until too late that, if one is to alter the .css and .php files, a theme-child should be made.

    Okay, if I…

    1. download all the altered files
    2. change the stylesheet header as necessary
    3. put a theme-child directory on my server
    4. upload files to the new directory
    5. and activate the new child theme
    6. …shouldn’t this basically be the same thing as producing a child theme in the first place? And wouldn’t this take care of any future required updates to the theme for the purpose of future WordPress update compatibility issues?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator cubecolour

    (@numeeja)

    Creating a child theme form an edited parent theme is not ideal and there are some extra steps.

    You will need to be sure not to duplicate any functions in the functions.php of the parent theme in the child theme. Only include templates from the parent in the child theme if you have made changes to those files.

    Ideally you only want to include styles in the child theme’s stylesheet that modify the parent theme’s styles rather than duplicating the full set.

    EDIT – oh sorry, cross-posted with cubecolor :)!

    Partly okay – the style.css file should ideally contain only changes, not a copy of the parent file. https://www.diffchecker.com/ can be helpful in getting those moved.

    A functions.php file cannot be duplicated in a child theme – if you’ve modified that, you’ll need to get specific help on the theme’s own forum.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Themes and New Versions of WP, Theme Updates’ is closed to new replies.