• Hello

    I use twentyseventeen theme with wordpress 5 and I use child theme for applying changes.
    But I would like to applying a change in the style-rtl.min.css file that is in the following path:

    /wp-includes/css/dist/block-library

    But after updating wordpress, loss the theme changes. because the file is not in the child theme folder.
    How can I apply change in the style-rtl.min.css file in the child theme?

    • This topic was modified 7 years, 4 months ago by zimaa1991.
    • This topic was modified 7 years, 4 months ago by zimaa1991.
Viewing 2 replies - 1 through 2 (of 2 total)
  • That is a WordPress file, so you shouldn’t be changing it. You should just override the CSS in your child theme.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You don’t need to replace files like that, or change the existing CSS. The thing about CSS is that it is cascading.

    All CSS applied to the site applies equally and at the same time, so any CSS rules can be overridden with more specific CSS rules, in any CSS file that applies.

    What is the specific change you are trying to make? You can always create a rule in your child theme’s style.css file that will have the same effect without needing to change the parent.

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

The topic ‘Losing theme changes after updating wordpress’ is closed to new replies.