You can enqueue your own stylesheet by adding this to your child theme’s functions.php
file:
function wpa_custom_css(){
wp_enqueue_style(
'wpa_custom',
get_stylesheet_directory_uri() . '/responsive.css'
);
}
add_action( 'wp_enqueue_scripts', 'wpa_custom_css', 999 );
This will load the file responsive.css
located in your child theme directory. The priority is set very low (999) so it is more likely to appear after other styles which may be enqueued on the same action.
Related Posts:
- Versioning @import of parent theme’s style.css
- Attributing a version number to a child theme’s main stylesheet
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Why is the Child Theme Stylesheet Not Loading?
- Give priority to child theme stylesheet
- Style.css in child theme is loaded before Bootstrap
- Overwrite CSS with without deleting it
- Child Theme vs. Jetpack Editor
- How do add a the style-mobile css from the main theme to the child theme?
- Child theme style.css isn’t overwriting parent style.css
- How to use custom stylesheet only for a template in child theme
- Order of stylesheets in child theme
- Add head and body function for google tag manager in child theme
- Child theme problem
- Why is this jquery / java script code not working in mobile / in devices?
- What is the correct workflow for modifying child themes?
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- Child theme not importing parent styles
- Set a link in child theme style.css to jump to #main [closed]
- How to create a non-responsive WordPress Theme Using Genesis Framework?
- Stylesheet overriding in Child theme
- Two stylesheets acting on one element
- Twenty ten or Twenty eleven as base for responsive child theme
- WordPress Child Theme – twentyeleven
- Modify Twentyeleven child theme CSS – How to change body font size?
- Enqueuing multiple stylesheets with a child theme
- How to override styles from child theme if all the styles are in a folder?
- How to activate the child theme in WordPress?
- How to create my own style.css file in an wordpress child-theme
- How to add code to Header.php in a child theme?
- Why does my child theme CSS get called twice?
- Hiding Parent Theme
- how to call files in child theme?
- Child theme showing a blank page
- Child theme preview missing
- How can you change default color scheme in a Twenty Fifteen child theme?
- Why do WordPress default themes specify fonts in so many places?
- Enqueue styles properly in a child theme and stylesheets location
- Enqueue more than two CSS styles in a child theme functions.php
- How to Make WordPress Default gallery responsive on mobile?
- Proper way to make a tweaked theme into child-theme setting?
- Promoting child theme to stand alone
- Activating child theme returns “active theme is broken”
- CSS in child theme not getting loaded
- How to load all plugins CSS after child theme CSS?
- TwentyTwelve versioning
- Can’t override footer.php in child theme
- Where is wp-content/themes folder?
- Remove Genericons Helper CSS from twentyfourteen theme
- Priority loading file css in child theme
- Enqueue Child CSS to Load After Bootstrap CDN
- How to remove a script that was queued up in the footer in a parent theme
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- Different ways to load child theme css
- Child Header.php Not Showing On Other Pages
- How to extend parent theme sections and settings to Options Tree
- Importing changes to Child Theme
- Is it possible to add a ribbon in the background of h1 on every page?
- Mobile issue – website isn’t properly detecting screen size [closed]
- Creating child-theme from other template files
- Child Theme with multiple css files
- Trying to figure out why my child theme is trying to access a file that doesn’t exist
- Custom Background by Page IDs
- Title has word broken when viewed in mobile [closed]
- Child style loads before all parent styles
- Faster fonts on mobile
- child theme – moved files from twentyeleven theme to child them, now not working
- Which is the child theme and which is the parent theme?
- Storefront theme : Add Categoy to recent products section
- Remove CSS & JS from
- design has been broken in WordPress child theme [closed]
- All of my custom Bootstrap styles are not working in my child theme!
- Earlier stylesheet not overriding later one
- CSS stopped working after line 150 [closed]
- use child theme for mobile version
- How to edit background color of only one sidebar?
- How to replace function in child theme?
- Can only override parent theme styling with ‘!important’ in child style.css
- Change child theme after updating parent theme
- Including code from other themes in child themes
- Need to make sidebar responsive only when screen width is greater than 1024px
- Pseudo class :before don’t working in a specific button
- How to locate parent theme functions and add functions to my wordpress child theme?
- Website Tablet Check Out Field Issue
- Remove image border in twentyeleven theme [closed]
- Child Theme not loading multiple stylesheets
- @media applying globally and not separately for each screen width [closed]
- Alpha-store-child does not save changes
- Widget text color change
- Site not 100% responsive
- Header formatting works for safari but not chrome @media screen size technique on iphone
- How to prevent funny characters on Home Page
- Functions.php in child theme that loads CSS file breaks website
- adding navigation to genesis themes
- Is there a good way to use CMS images with CSS
- creating a new child theme
- Selling a child-theme of twenty-thirteen is legal? [closed]
- What is __(arguments) in my functions.php
- Can’t override CSS with child theme
- How to override a theme template file with a child theme template file (of the same name)