admin管理员组

文章数量:1429211

I have a premium theme installed and I need to add some custom CSS to add some new styles.

So what will happen if I add the CSS to the additional css section in the customize? Will I lose them when the theme is updated?

Should I install a plugin or create a simple one for this?

I tried to search about that, But didn't find an answer.

I have a premium theme installed and I need to add some custom CSS to add some new styles.

So what will happen if I add the CSS to the additional css section in the customize? Will I lose them when the theme is updated?

Should I install a plugin or create a simple one for this?

I tried to search about that, But didn't find an answer.

Share Improve this question asked Apr 27, 2019 at 13:27 maxwellmaxwell 233 bronze badges 1
  • Normally the css will be saved in the database I guess. – Robbert Commented Apr 27, 2019 at 13:30
Add a comment  | 

1 Answer 1

Reset to default 5

Nothing. The Additional CSS section of the customiser will be unaffected by updating the theme.

The reason you may have seen warnings regarding updating themes and losing customisations is because when themes are updated, all of its files are replaced with fresh copies. So the reason you lose changes is because if you modified the themes files then they have been overwritten with copies that don’t have your changes. None of this is relevant to the Customiser, because it doesn’t modify theme files.

本文标签: customizationWhat will happen to the additional CSS when the theme is updated