Recommended Way To Modify Child Themes

Homepage Community Forums General Recommended Way To Modify Child Themes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15156
    Rich
    Customer

      I’ve begun customizing the Legacy theme – making changes to the theme’s css file and also adding actions and filters to the functions.php file to remove post metas, etc. I know the suggested way to modify the styles.css file for WordPress themes is to create a child theme of it, but since these are child themes of Genesis is it safe to modify the theme’s files directly? I’m concerned about updates to the child theme overwriting my mods. Guessing backing up the modified files is the best way.

      I’ve also run across several plugins for the Genesis framework such as Simple Edit and Simple Hooks. Maybe this is a better way of persisting changes to the theme’s functions.php file across theme updates.

      Thanks,
      Rich

      #15164
      Jason M
      Customer

        Yes you can edit the files directly if you want. That’s what most people do. The majority of the updates for Child themes are usually small and not necessarily something everyone would need to do if they didn’t want to. If I were you, I wouldn’t worry too much about it, I’d just edit your files however you feel comfortable.

        If you don’t want to edit the files directly, then you could create your own custom css file and add in your edits there so that it stays separate from your child theme and won’t get overwritten. Just create a custom.css file, add it to your theme folder and make sure and link to that file from your style.css file.

        #15169
        Rich
        Customer

          Thanks for the reply, Jason. It makes a lot of sense. I’ll edit away 馃槈

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Recommended Way To Modify Child Themes’ is closed to new replies.