Answer the question
In order to leave comments, you need to log in
Is it reasonable to put plugin CSS styles in the theme's style.css file?
Hello!
I am finalizing the adaptive layout of one of the WordPress themes. In addition to the theme, you need to make several plugins responsive so that it all looks great together.
Advise how best to:
1) create media queries in a file with styles of each plugin of interest, by analogy with theme style.css.
2) put plugin styles in already created media queries in theme style.css file
Answer the question
In order to leave comments, you need to log in
If the plugins are your own, then it is possible in the plugin styles. If the plugins are from wordpress.org, then only in the theme. Because when you update, the styles will be overwritten.
I would write my own media queries in the styles of each plugin. It's easier to find them that way.
In fact, you should read about site loading adaptation. First of all, we load the main styles from the main ones, loading them directly into header.php. For example bootstrap.min.css, as well as css code that is responsible for loading the first visible area. Well, we connect the rest of CSS and JS through loadCSS and similarly to js. As a result, we get Google Page Speed 95-100% :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question