I’m sure you missed it but the dependency parameter should be an array and not a string.
So your enqueue function should be:
function child_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('bootstrap'));
}
or:
function child_enqueue_styles() {
wp_enqueue_style( 'parent-bootstrap', get_template_directory_uri().'/css/bootstrap.min.css');
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('parent-bootstrap'));
}
Reference: wp_enqueue_style
Related Posts:
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- Give priority to child theme stylesheet
- Get parent theme version
- How to use parent theme’s enqueue methods
- Enqueue styles properly in a child theme and stylesheets location
- Style.css in child theme is loaded before Bootstrap
- 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
- 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
- Child theme style repeated
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- Prevent a base themes css file from loading
- WordPress Child theme’s css not loading
- Confused about how to use wp_enqueue_style
- Child style loads before all parent styles
- 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 make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Can only override parent theme styling with ‘!important’ in child style.css
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- how to fix loading scripts in child theme?
- Why won’t my Custom CSS Load
- How to create my own style.css file in an wordpress child-theme
- How do I dequeue a parent theme’s CSS file?
- How do themes provide support for child themes?
- Preserving theme settings in child theme
- Is it possible to make grandchild themes?
- get_parent_theme_file_path vs. get_template_directory
- Child theme does not overwrite parent themes style.css
- Do all files in child theme override the parent?
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- Overriding parent theme file
- How can I make new .css file in child theme override styles in child theme’s style.css
- Overiding functions.php with child-theme
- How to change default header image dimensions in twentyfourteen child theme?
- Overwrite CSS with without deleting it
- Adding or modifying in files of parent theme via child’s function.php
- Child theme implementation issues
- Child Theme Path Being Ignored With wp_enqueue_scripts
- bbpress change the word forum, topic, reply in the forum to another word I choose
- Specific custom child theme page
- Parent theme CSS overriding child CSS rules
- Child theme works in local environment but is not working on remote
- Tesseract child theme loads slow [closed]
- How to use custom stylesheet only for a template in child theme
- Order of stylesheets in child theme
- Creating a child theme from Twenty Seventeen
- Adding a title below the logo
- Child theme .css files are not overriding their parent .css files
- How to create a parent theme for accesspress parallax theme?
- why this media query is not working / not loading when I put it in child theme?
- How to add anchor tag at the top of posts, past the header and nav bar?
- changing parent theme into child theme
- filemtime(): stat failed warning within a child theme
- Child theme stylesheet not always overriding “index”
- How to override parent theme template files?
- How Child Themes Directory works for plugins?
- Child Theme CSS not showing at all
- Link featured image to post
- Modify a parent theme’s PHP file, and save in child theme
- What are the best practices for maintaining and deploying several parent themes?
- Getting a list of the PHP files included to generate a page
- Child theme not importing parent styles
- is it possible to add new template in theme twenty seventeen?
- Updating my WordPress.org version will cause my site to break… What can I do to avoid this?
- style.css of child theme is not overwriting parents style.css for .box
- Two stylesheets acting on one element
- Is the front-page.php template reserved in wordpress twenty twelve theme?
- Referencing parent theme image from child theme
- Can’t seem to get javascript code working from child theme
- Change templates in a child theme
- template_include doesn’t work with child theme
- Dequeing Parent Fontawesome Deques Parent Styles
- Swap SVG icons in child themes
- How to fix error message to edit sidebar widget text on a livesite childtheme?
- How does a Genesis child theme understand that the Genesis theme is the parent theme?
- Child Theme Can’t Find Parent In a Folder
- Problems with child theme
- Loading my main.js file from my child theme
- Is it possible to slow down site with a bulky child theme?
- Installation directory for WordPress and child theme
- How to include only modifications in child theme?
- Child Theme > Template
- Edit php files in subdirs in a child theme
- wordpress every page returning 500 error
- Browser stacks different versions of style.css
- How to add modified php in child theme?
- WordPress | enqueue_scripts in a child’s theme returns error
- Child theme customizer preview doesn’t work/load
- theme.json should be in the child theme folder when using xxxx.json style located in the styles folder?
- Is it possible to load a child theme from a remote server?