How to properly apply styles to Child theme

222 Views Asked by At

I have a situation. My child style.css file contain the following line :

@import url("../notio-wp/style.css");

The Main theme style.css file, contain the following message:

/*
* PLEASE DO NOT EDIT THIS FILE!
* 
* This file is only in your themefolder for WordPress to recognize basic theme data like name and version
* CSS Rules in this file will not be used by the theme. 
* Instead use the app.css file that is located in your themes /assets/css/ folder to add your styles. 
* If you just want to add small css snippets you might also  want to consider to add it to the designated 
* CSS option field in your themes backend at: Appearance -> Theme Options
*/

I've made some modifications in custom css Main theme field and also in app.css file.

What is the best way to include into the Child theme, the new css styles, should I simply copy the app.css file into the Child theme structure, or only the app.css modified lines, into the Child style.css file, next to the css lines from the custom css Main theme field? thank you,

0

There are 0 best solutions below