2 replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
source | link

I've only found one post on this and the OP asked for clarification, but didn't get any: http://wordpress.stackexchange.com/questions/180845/how-to-enqueue-both-style-css-and-style-mobile-css-in-child-themehttps://wordpress.stackexchange.com/questions/180845/how-to-enqueue-both-style-css-and-style-mobile-css-in-child-theme

I'm using a pretty standard theme and have set up the Child Theme through the enqueue function in my functions.php file in my child theme.

My question is: the main theme also has a /css/style-mobile.css which, i believe is quite standard. If I wanted to make modifications to this, how would I bring it into my child theme?

  • I'm assuming I have to refer to it in the functions.php file, how would I do that?
  • Does it work like the main CSS that I only put in it the styles I want overriden? Or do I keep the entirety and change the bits I need changing?

Thank you! CC

I've only found one post on this and the OP asked for clarification, but didn't get any: http://wordpress.stackexchange.com/questions/180845/how-to-enqueue-both-style-css-and-style-mobile-css-in-child-theme

I'm using a pretty standard theme and have set up the Child Theme through the enqueue function in my functions.php file in my child theme.

My question is: the main theme also has a /css/style-mobile.css which, i believe is quite standard. If I wanted to make modifications to this, how would I bring it into my child theme?

  • I'm assuming I have to refer to it in the functions.php file, how would I do that?
  • Does it work like the main CSS that I only put in it the styles I want overriden? Or do I keep the entirety and change the bits I need changing?

Thank you! CC

I've only found one post on this and the OP asked for clarification, but didn't get any: https://wordpress.stackexchange.com/questions/180845/how-to-enqueue-both-style-css-and-style-mobile-css-in-child-theme

I'm using a pretty standard theme and have set up the Child Theme through the enqueue function in my functions.php file in my child theme.

My question is: the main theme also has a /css/style-mobile.css which, i believe is quite standard. If I wanted to make modifications to this, how would I bring it into my child theme?

  • I'm assuming I have to refer to it in the functions.php file, how would I do that?
  • Does it work like the main CSS that I only put in it the styles I want overriden? Or do I keep the entirety and change the bits I need changing?

Thank you! CC

1
source | link

How do add a the style-mobile css from the main theme to the child theme?

I've only found one post on this and the OP asked for clarification, but didn't get any: http://wordpress.stackexchange.com/questions/180845/how-to-enqueue-both-style-css-and-style-mobile-css-in-child-theme

I'm using a pretty standard theme and have set up the Child Theme through the enqueue function in my functions.php file in my child theme.

My question is: the main theme also has a /css/style-mobile.css which, i believe is quite standard. If I wanted to make modifications to this, how would I bring it into my child theme?

  • I'm assuming I have to refer to it in the functions.php file, how would I do that?
  • Does it work like the main CSS that I only put in it the styles I want overriden? Or do I keep the entirety and change the bits I need changing?

Thank you! CC