If the parent theme bundles all vendor scripts in one file, you can’t require/enqueue them separately. From WP’s point of view, they are one single resource/dependency.
Look into any page’s source-code or use a plugin (such as “debug this”) to get the script’s register name so you could specify it as dependency. In your case it could be {parentThemeSlug}-main
. It’s not the file name, but the register name which needs to be specified in the dependencies array (i.e. jquery.min.js
is jquery
). I usually look it up in parent theme by finding the register/enqueue function.
Related Posts:
- Overide enqueue in non plugable function via child theme
- how can I re-utilize and class on a child theme
- How to Use Webpack with WordPress Script Modules and Enqueue a Custom Class
- how can I add an icon/image for a child theme?
- WooCommerce shop page to use my custom template [closed]
- How to enqueue script if widget is displayed on page?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Child Theme vs Duplicate Theme Renamed
- Hide a div that is part of all pages on one specific page
- Why I can’t add a CSS style in this WordPress theme?
- How to add Color Picker in Theme Options for the following?
- The difference between calling wp_enqueue_scripts to load scripts and styles in custom theme
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- Is there a way to set the order of wp_footer hooked functions?
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- What can I hook into after_setup_theme?
- What does “Do not deregister the jquery script in the administration area” mean?
- add generated stylesheet from parent theme after child-themes style.css
- add_image_size is scaling, even though crop is set to true
- How do you enqueue script tags for ReactDOM in WordPress’ functions.php?
- Identifying the priority of style.css so I can make a small CSS file load last
- Change Genesis Tag from Page Template [closed]
- How do I get my child-theme to work with my theme’s includes folder?
- How do I get a parent theme modification from a child theme?
- using wp_enqueue_script to attach jquery-ui
- CSS in child theme not overriding the parent theme [closed]
- Modifying JS files in Child-theme
- Optimal solution to develop a wordpress theme?
- Enqueued Stylesheets Effecting Admin Styles
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Nesting Functions within Functions
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- How to keep my custom theme changes after updating genesis child theme
- wp_enqueue_script being ignored in custom theme
- De-registering parent style sheet css recommended?
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- Getting jquery to work with custom theme
- Can a child theme based on Starker theme be released as free to use theme for public use?
- Is it safe to enqueue a font style without putting http or https?
- Override Constants in Child theme
- Changing order title and featured image in blog post (Astra theme)
- Loading files for theme and child theme (Require)
- Adding wp_enqueue_media(); causes problem
- how can I remove the sidebar from my wp homepage [closed]
- Unhook action from child theme
- Does any theme support child theme?
- Am I supposed to create a child theme for every theme I use?
- Child themes: disabling the parent
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- How to Edit the style of header title of Twenty Eleven Theme?
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- Including Javascript options
- Is my approach to enqueue styles inefficient?
- Child theme style.css versioning
- functions.php not hooking up with style.css
- way to include own functions independent of theme
- Cannot figure out how to overwrite files in child theme
- How to To Filter wp_enqueue_script() Scripts on Some Pages
- How to add theme support?
- Removing non native customizer settings from a child theme
- Link to a .po file in a child theme
- Alias to theme folder for local development
- How to add Bootstrap Tour JavaScript to WordPress Admin Panel Dashboard Widget
- Inheritance of parent theme plugin files in a child theme
- Difficulty loading jQuery with wp_enqueue_script
- Divi Child Theme not appearing in “Themes” [closed]
- jQuery not available to other scripts
- Override template file i subfolders
- What happens to child theme if I change to new version of parent theme?
- Include Parent functions.php in Child Theme functions.php
- Injecting a custom sql query into a page/theme
- Select full Image Size on widget “Genesis – Featured Posts”
- How to first edit in local WordPress editor on page and the add code?
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- Child theme enqueue scripts using new functions
- Why is it needed to enqueue parent stylesheet in child theme?
- changing blog title to an image using filter function in child theme
- Show woocommerce categories on my theme menu styling
- How to override p2 breathe theme plugin in content template file?
- Child Theme’s style.css not loading in mobile browser
- How to modify default controls in WordPress theme customizer
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to make *.js and folders visible in theme-editor
- add_filter to parent theme helper class function from child theme
- How to properly create a child theme
- Replace function in a child theme
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Renaming a theme so it aids SEO and the theme used is hidden
- filemtime(): stat failed warning within a child theme
- Overrite parent functions using child functions
- How can I override a require() used in functions.php of parent theme to my child theme
- Enqueued JavaScript is not working
- Derive child theme from separate theme