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 override JavaScript files in child theme?
- How to add code to Header.php in a child theme?
- Why does my child theme CSS get called twice?
- How do themes provide support for child themes?
- Preserving theme settings in child theme
- Is it possible to make grandchild themes?
- How to cache bust a child theme style.css
- Child themes CSS priority problems without using !important
- How to add stylesheets only to pages with specific shortcode?
- Is a text-domain necessary for a child theme
- How to modify single.php in a child theme?
- Cannot get Child Theme to load latest version of style.css
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- How do I cleanly override a plugin’s CSS with a child theme?
- @package & @subpackage: how to use with child themes
- How to override function in child theme
- Hiding Parent Theme
- wp_head() gives me some weird CSS
- get_stylesheet_directory() vs get_template_directory() for child theme
- Theme Customization API and child themes
- Hide a div that is part of all pages on one specific page
- get_parent_theme_file_path vs. get_template_directory
- Git vs Child Theme
- Child theme does not overwrite parent themes style.css
- how to call files in child theme?
- Get Parent Theme Author Name
- How can I reduce the amount of files loaded/included per plugin?
- Get parent theme version
- Optimal approach for replacing the 8 header images in a child theme?
- How do I remove specific styles from the parent theme css using the child theme css?
- How to transfer changes to a child theme?
- WordPress master + child themes + Git workflow
- How to use parent theme’s enqueue methods
- How do I override a parent theme’s language files with a child theme?
- Making WordPress Gallery (.gallery-item) Responsive?
- something like is_childtheme()
- Do all files in child theme override the parent?
- Child theme showing a blank page
- Child theme preview missing
- Child Theme Performance
- How could child theme be different than parent theme if I haven’t made changes?
- add generated stylesheet from parent theme after child-themes style.css
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- Do I need to update the child theme too after updating the parent?
- get_template_directory vs get_stylesheet_directory
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Theme customizer: How do you grab the value later?
- Developing a childtheme, how to disable the parents templates?
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Child Theme, Functions.php Issues
- Redefining function in child themes
- Do I only need to import style.css for a child theme?
- How do I check for child theme files first using include, before going to parent theme?
- How can you change default color scheme in a Twenty Fifteen child theme?
- Use admin options from parent theme in child theme
- When activating a child theme, what core settings have to be reset ie; Custom Menus etc?
- Hwo to turn off “get_parent_theme_file_path” in child-theme?
- Trying to load a responsive CSS media query using Custom Taxonmy
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- Customized widget area – how to override or filter class xoxo?
- Getting rid of unused css directives [closed]
- Overriding parent theme file
- How to “remove” file from parent theme
- How to override the Parent theme Function into child themes functions.php
- CSS in child theme not overriding the parent theme [closed]
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- Activating Child Theme Breaks Website, Blank Page, Error 500
- Disable child theme css on certain pages
- some things in child theme css not overriding parent
- Why do WordPress default themes specify fonts in so many places?