I would say: you should not use the style.css
for the actual production CSS.
The reason is simple: minification. You cannot minify the content of the file completely, because WordPress has to read it. In my themes, I use style.css
just for the headers, and I add a comment, explaining where to find the real CSS, so other developers don’t have to search too long.
Example:
/*
Theme Name: My theme name
Version: 2013.08.24
License: MIT
Text Domain: t5_theme
Domain Path: /lang
You will find the real stylesheet in css/default.css.
*/
Related Posts:
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- CSS classes for theme
- Are the WordPress Core CSS styles really all nessesary?
- Why I can’t add a CSS style in this WordPress theme?
- How to make a theme with more than one CSS file?
- Editing the custom background CSS
- CSS in child theme not overriding the parent theme [closed]
- How to highlight the current page in the nav menu?
- Sub folder CSS that’s read by Admin panel
- Where is definied the theme location for the main menu in a WordPress template?
- Dequeue a style file which is making website load slow!
- Theme Loading Into Dashboard
- How to edit my theme for full width?
- Which html elements should be styled in wordpress theme
- Font Awesome 5 Free – far working but fas is not? [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Having issue with WordPress wp_enqueue_style
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- LESS not working in WordPress [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Some doubts about WordPress handle the horizontal main menu visualization
- Can’t change theme name
- How to use the _S framework
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- Why nav_menu_css_class doesn’t work with apply_filters?
- How can I fix my theme header for my CSS stylesheet?
- How to generate a rtl.css file for themes?
- Why the slideshow is not shown in my theme?
- adding navigation to genesis themes
- Custom link color or stylesheets
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- How important is it to enqueue a theme’s stylesheet?
- Using classes instead of global functions in functions.php
- How to move page template files like page-{slug}.php to a sub-directory?
- Add custom classes to anchor in wp_nav_menu
- Allow Shortcode in Theme Customizer
- Setting multiple default background images?
- How to edit an existing WordPress theme? [closed]
- How do I get gallery thumbnail URL and change the default thumbnail size?
- Select menu on browser resize
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- Can I upload WordPress-react theme in Wp theme repository
- Upgrading a custom theme through the Dashboard
- Cannot get full thumbnail size using the_post_thumbnail
- Version control for both Vagrant config and themes being developed [closed]
- Is there a way to activate different theme for specified users? [closed]
- how can I remove the sidebar from my wp homepage [closed]
- “add_theme_support” for custom footer color?
- Media Uploader in custom path
- How to add infinite scroll?
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Using PIE CSS in WordPress. “localizing” styles
- Theme Development: Starter Content after hook
- Change locale by detecting viewer’s browser language setting and let them choose prefered language after
- Why is it needed to enqueue parent stylesheet in child theme?
- Is accessing theme and using customizer GPL distribution?
- How to enqueue javascript for WP Customize options sidebar?
- WordPress 500 Internal server error when activating custom theme [closed]
- Customize how a WordPress theme looks like in the Theme Selector
- Combining CSS files into a single cached one
- How to set a page as homepage in stead of the newspages?
- Widget Option is Missing
- WordPress Theme Validator?
- How do I use a color from theme options?
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Template for landing pages
- html5-reset theme does not show the image [closed]
- What exactly is “wordpress theming”? [closed]
- Valid SQL query not returning results
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- What is the difference between Twenty eleven & roots framework?
- .current_page_ancestor broken in Twenty Eleven
- How to change listing type permlink?
- Adding popup support to the theme
- How do I change the color of individual page titles in WordPress?
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- How to reduce the vertical space above and below a ul list uniformly with one command?
- Is it possible to echo a woocommerce prouct attribute discription?
- How do I remove header/page-title image in farvis theme? [closed]
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- Images use & location, on new wordpress theme
- On wordpress, how do i require specific dimensions from user uploads only
- WordPress Theme Developments – Start from another theme
- Slider should be display in home template [closed]
- WordPress Customization API overwrite LESS variable
- Modify comments_popup_link output
- Can you create a custom page with content in the center already defined?
- RSS feed url showing page not found. How to solve it?
- How to convert that page to a wordpress template? [closed]
- Toolbox theme using printif statement – help needed understanding code block
- How to Create a Multi Purpose Theme?
- Custom Single Page Portfolio Theme [closed]