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 do I make a shortcode to display Dokan seller badge list?
- How can we upload custom page files?
- Calling a PHP function from a menu item
- Hide or Show Read More Button by Content Area
- How do I make my function add variables/values to the $post object?
- Calculate percentage of post by category
- Change comments form title on a page by page basis
- Get the title before comma
- wp enqueue style and style sheet depth
- “Can’t use function return value in write context” error
- Display 4 chronological posts starting with a random post
- Warning: array_pop() expects parameter 1 to be array, boolean given
- Problem adding class to body_class
- Run a filter when a walker runs
- Swapping wp_dropdown_categories function with wp_category_checklist
- Display fields as values in array from external SQL DB
- Populate dropdown with Child Pages based on Parent Page chosen
- How can I remove a function that has been added to wordpress with add_filter?
- Get value from shortcode to do something
- What’s the uses of wp_cache_set() or wp_cache_add()?
- Create Page To Count Comments For Each Post In WordPress Site
- How does wp_enqueue_scripts work?
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- get specific value of a array | PHP
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- using wp enqueue style to create a CSS file specifically for a page template
- Hide a div when a custom field is empty
- Create Columns with Custom Walker and CSS Classes
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Advanced method to control cache of enqueued style/script
- How to change basename url for wp-admin?
- How to exclude meta no index pages from wp_list_pages
- Hide a div if the fiels is empty
- Illegal string offset checkbox
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Using Javascript On Page – Header and Footer Now Missing
- Unzip_file causing Media file upload error
- Styling a specific post after hovering over it
- Escaping a Single Quote in str_replace for Nav Function
- How to remove image on single product and get product to span page?
- insert thumbnail image from php script
- widget: input the px value from user and use it as inline style in widget function
- WordPress rating by views [closed]
- Trying to see if page is category or single and displaying title with appropriate heading tag
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Remove default Image Sizes
- A better way to write this php function
- how to create twitter card without plugin in wordpress website?
- FATAL ERROR when I try to change the .php according to required and optional items rule
- Options of select field in a custom divi module ignore sorting