• benedetti

    (@benedetti)


    [ Moderator note: moved to Fixing WordPress. ]

    I’ve learnt that to include the parent stylesheet in your child theme, you need to enqueue it. But what if the parent theme stylesheet is updated? That could change the look of my site, right? Wouldn’t it be a better option to copy-paste the parent theme in my child style.css and not to enqueue the styles? Thank you.

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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yeah it could, but the whole idea of a Child Theme is to make changes in a way that extends the theme. So if the theme updates your changes will remain intact while still inheriting the theme functionality.

    Thread Starter benedetti

    (@benedetti)

    Thank you, Andrew. I skipped a word in my post. I wanted to say “Wouldn’t it be a better option to copy-paste the parent theme STYLES in my child style.css and not to enqueue the styles?”

    So I would get parent theme updates, but not the ones related to style.css… Did you answer with that in mind and so you think it is better to risk having style changes introduced by the theme developer?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If your situation is you don’t want to inherit the theme’s changes then you can consider doing things another way – You should question whether you want to go down the Child Theme route at all.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Child theme and styles’ is closed to new replies.