If you want to make sure the second stylesheet loads after the first, you can use the third argument of wp_enqueue_style
to set a dependency, eg:
wp_enqueue_style( 'styles', THEMEROOT . '/css/style.css', array() );
wp_enqueue_style( 'responsive', THEMEROOT . '/css/responsive.css', array('styles') );
As for having all the styles in responsive.css override style.css, that is going to entirely depend on the specificity of the targeting in each stylesheet, CSS being a Cascading Style Sheet, it would be worth researching exactly what that means if you aren’t fully sure how it works.
Related Posts:
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- “wp_enqueue_style();” don’t load new edited style
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- Enqueue less file not working in child theme?
- Understanding child theme functions.php
- wp_enqueue_style with style.php and WordPress functions
- Is it possible to use the featured image of a page as a css background without inlining?
- Using PHP to toggle stylesheet and header image, set in cookie
- Shortcode content output but not in correct place
- Plugin CSS not enqueing
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- Css loads very slow [closed]
- Need help enqueueing webfonts
- Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]
- How to change menu labels
- Which is the correct way to conditionally enqueue a CSS file?
- height should be set to auto to avoid pixelation in the post thumbnail function
- How to make container class in PHP
- linking stylesheets and scripts with functions.php
- get_template_directory adding FTP root folders in urls
- Creating a mobile site by adding a new class to the body tag from functions.php
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- CSS change in woo commerce Place Order Text [closed]
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- child parent styles enqueue order
- How to make a cookie be on the whole site instead of being on a specific page/
- Enqueueing a code block from an options framework
- how to changes mobile menu toggle breakpoint in WordPress
- Why would the child theme load in the Customize preview, but not on the site itself?
- PHP function for horizontal Woocommerce thumbnails and badges
- I got big white screen when i attach main style sheet of Html in functions.php
- Site title not showing. Please help me
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Add class for the_post_thumbnail_caption()
- Displaying POST content with HTML tags and all
- Highlight Single Page Ancestor
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Styling admin page rows in order of importance (checkboxes)
- How to have Function of a plugin using global vars into a shortcode?
- wp add inline style in loop
- Cant get theme to change footer color through theme customizer
- How to NOT override inline css rules
- How to add margin underneath woocommerce total price amount -> productpages
- How do I get Roboto Google Font to display normal font-style? [closed]
- Integrating CSS Into a WP Function Call [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Sorting Problem
- Styling best practices for single pages/templates
- How to call a function only once (global variable scope)
- Multiple is_page() in page.php
- Fatal error: Call to undefined function plugin_dir_path()
- Switching wp_get_sites to get_sites
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- One button to change all settings in theme customizer?
- Need help on WordPress and php
- How can update custom meta for all posts
- Child Theme Not Overriding Parent Theme
- Is $hook a global variable in WordPress
- wrong php date()?
- How do I fetch all comments per post via WP REST API?
- Add a custom stylesheet for BlackBerry
- Handling Body class based on Template
- Automatically adding new post categories to menu
- Get post id in a function when edit/add a post
- get author_name from queried post
- Pass php dynamic variable to shortcode
- Query Pages and post excerpts dynamically
- two columns of posts on homepage, one of them “favorites”
- Redirect to another page using contact form 7? [closed]
- Custom Background by Page IDs
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- Split Media Queries in different files!
- Need php code’s output to display underneath a Divi Module
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- How to use mysql LIKE with wpdb?
- woocommerce related product title length
- Query for user roles
- Displaying Event within two given time frames
- Is there a way to create a “copy post” link?
- Use of antispambot with $curauth->email
- How to edit background color of only one sidebar?
- Removing links from Grouped products
- Enqueue assets from multiple directories using add_action/do_action
- Hide author from search results meta, still display date and categories
- Taxonomy Child Term, Counter is staying on 0
- Access to “My Site” is missing from the admin bar
- How to redirect (301) trashed post to it’s parent taxonomy TERM ARCHIVE instead of 404 page
- Child Theme not loading multiple stylesheets
- Using get_theme_mod with checkbox to display content
- Insert wordpress tags below posts via functions.php
- Pagenav Not appearing on custom Template
- Show Nav Link To Users Signed In
- PHP Puzzle: Unique Styles with PHP loop
- My title is showing after the shortcode
- Load a Header in wordpress
- Trouble figuring out how to get my button to submit comment
- Adding multiple conditional tags in a function?
- How do I stylize selected comments?