Mostly the parent theme might be enqueing the child theme’s style.css
, if so you can dequeue it by using handle and then enqueue with proper dependency.
If the child theme’s handle is child-theme-style
, then dequeue it using
wp_dequeue_style('child-theme-style')
then enqueue it as needed like so.
wp_enqueue_style('child-theme-dep',get_stylesheet_uri(),array('bootstrap-handle-here'))
We can easily know the child theme stylesheet url by looking at the link output in the head, for example in the attached image.
<link rel="stylesheet" id='hybrid-style-css' href="https://wptavern.com/wp-content/themes/stargazer-child-dev/style.css?ver=4.6.1" type="text/css" media="all" />
Tells us that the child theme’s enqueue handle is hybrid-style
which is the id
without -css
.
Related Posts:
- Why is the Child Theme Stylesheet Not Loading?
- Give priority to child theme stylesheet
- Prevent a base themes css file from loading
- 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?
- How to create my own style.css file in an wordpress child-theme
- 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?
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Get parent theme version
- How to use parent theme’s enqueue methods
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- How can I make new .css file in child theme override styles in child theme’s style.css
- Disable child theme css on certain pages
- Enqueue styles properly in a child theme and stylesheets location
- Child Theme Not Overriding Parent Theme
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- Understanding child theme functions.php
- Load custom css after bootstrap
- Overwrite CSS with without deleting it
- De-registering parent style sheet css recommended?
- Enqueue stylesheets if parent theme has more than one .css file
- ERROR MESSAGE: Missing index.php—Child Theme
- Priority loading file css in child theme
- Is my child theme working properly
- Enqueue Child CSS to Load After Bootstrap CDN
- Child theme style repeated
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- How to install bootstrap in child theme
- Child Theme vs. Jetpack Editor
- WordPress Child theme’s css not loading
- Different ways to load child theme css
- Parent theme CSS overriding child CSS rules
- 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
- Confused about how to use wp_enqueue_style
- How to use custom stylesheet only for a template in child theme
- Order of stylesheets in child theme
- Child theme problem
- Port existing Bootstrap site to WordPress?
- why this media query is not working / not loading when I put it in child theme?
- Child theme stylesheet not always overriding “index”
- Child style loads before all parent styles
- Child Theme CSS not showing at all
- What is the correct workflow for modifying child themes?
- How to install Bootstrap in a WordPress child theme
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- Parent theme styles overriding child theme CSS [closed]
- Child theme not importing parent styles
- All of my custom Bootstrap styles are not working in my child theme!
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- get_template_directory_uri() links to child theme not parent
- Set a link in child theme style.css to jump to #main [closed]
- Stylesheet overriding in Child theme
- Two stylesheets acting on one element
- WordPress Child Theme – twentyeleven
- Modify Twentyeleven child theme CSS – How to change body font size?
- Can only override parent theme styling with ‘!important’ in child style.css
- Why would the child theme load in the Customize preview, but not on the site itself?
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- How to enqueue stylesheets in child-theme functions.php?
- Dequeing Parent Fontawesome Deques Parent Styles
- Remove Stylesheet by URL that has not been enqueued
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- My Child Theme CSS Isn’t Working
- Font size decreases when child theme is created from parent theme?
- Enqueuing multiple stylesheets with a child theme
- Child Theme not loading multiple stylesheets
- how to fix loading scripts in child theme?
- How to override styles from child theme if all the styles are in a folder?
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Why won’t my Custom CSS Load
- Why are my parent styles loading after my child styles?
- Browser stacks different versions of style.css
- Bootstrap 4 Optimization
- How to activate the child theme in WordPress?
- Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise
- vertical-align with Bootstrap 3
- Bootstrap Collapse not Collapsing
- Why I can’t add a CSS style in this WordPress theme?
- Enqueued Stylesheet Version Number Not Being Appended
- Child theme grabbing wrong location fo parent theme files
- WordPress Child Theme PHP Code Change Issues
- Bootstrap in theme
- How change child theme’s boxed layout to fullwidth in genesis? [closed]
- str_replace inside specific css files [closed]
- Proper way to show admin bar in HTML5 Blank theme
- Translated words not showing child theme
- How to create a non-responsive WordPress Theme Using Genesis Framework?
- Correct way to customise a child theme
- Stylesheet does not load despite functions.php
- Why does my child theme’s enqueue of styles mess up the order of script enqueues from the main theme?
- Where can I edit/see the HTML of this WordPress free theme?
- When I change some content in function of template-tags file in inc folder then its not working and show same as loke before