I assume these are child theme scripts because of your function name:
twentyfourteen_child_scripts()
When loading scripts from your child themes functions file you should use:
wp_enqueue_script( '$handle', get_bloginfo( 'stylesheet_directory' ) . '/js/filename.js', array( 'jquery' ), '1.0.0' );
Or use
add_action( 'wp_enqueue_scripts', 'child_add_modernizr_scripts' );
function child_add_modernizr_scripts() {
wp_register_script('modernizr', get_stylesheet_directory_uri() . '/js/modernizr.js', false, '1.0', true );
wp_enqueue_script( 'modernizr' );
}
Another potential problem maybe the file names are invalid for some reason.
get_template_directory_uri()
Applies to parent themes.
Related Posts:
- Remove ?ver= from wp_register_script
- wp_register_script was called incorrectly
- Registering a script dilemma→ wp_register_script
- How to call wp_localize_script() after the script?
- wp_register_script was called incorrectly file location
- Enqueue Scripts / Styles when shortcode is present
- When should I use wp_register_script() with wp_enqueue_script() vs just wp_enqueue_script()?
- Where is the right place to register/enqueue scripts & styles
- Check if a script/style was enqueued/registered
- How to properly dequeue scripts and styles in child theme?
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Register and enqueue conditional (browser-specific) javascript files?
- Correct Method to run scripts with dependencies without enqueue?
- Add a script as a dependency to a registered script
- Cannot deregister a script using wp_deregister_script
- Load js/css files only on specific admin UI pages
- How to dequeue / deregister any theme styles and scripts
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Hyphens vs. periods in the script slug in wp_register_script?
- wp_register_script multiple identifiers?
- enqueue and localize script in footer
- How to disable hoverIntent in WordPress 3.3 admin
- enqueuing React script and hooking its target div fails to load script
- Most elegant way to enqueue scripts in function.php with foreach loop
- How to Add a Custom Script to Customize.php
- wp_enqueue_script vs. wp_register_script
- Adding scripts to admin page in my theme
- Use js script from one plugin in another plugin
- Pass $this to function nested in another public function of the same class
- Child Theme – what is the scope of overwriting files?
- Best way to enqueue extremely popular scripts like bootstrap and font awesome
- Dequeue / Deregister script and replace it with a new plugin
- WP deregister, register and enqueue dequeue
- Is it possible to add an action to the currently running action?
- Adding jQuery dependency prevents my script from enqueuing/loading
- Best spot for wp_register_script() and wp_register_style()
- Can’t get JS code to work with shortcode
- wp_enqueue_script with dependencies doesn’t work
- changing function wp_register
- Register script/style: Is it possible to customize the version query string via plugin?
- Help with enqueing scripts in footer after init action
- How resource intensive is wp_register_script()?
- Can’t move jQuery to footer
- Register script version not showing
- Using multiple versions of jQuery while still calling it like WP likes
- Naming script handles right way
- Question about the way that wp_register_script works
- is_page() function doesnt working
- jquery won’t load in footer
- Why isn’t jQuery 2.1 loading in the header?
- Modernizr check first, then move on to wp_register_script()/wp_enqueue_script
- How do I get a child theme to load scripts from the parent theme?
- WP .js script file not loading
- How to cancel `wp_print_scripts`?
- Where does WordPress register default scripts like jQuery?
- plugins_url function mixes system path and URL
- Including style.css in Child Theme
- getting a js file for one page
- After e-junkie payment, send a http post to register user automatically?
- How can I load a javascript file that is type=”module” the WordPress way?
- Deregistering a script in WordPress seems impossible
- Register and enqueue style.css custom theme
- Loading scripts with wp_register_script and wp_enqueue_script
- Using wp_register_style to load CSS in footer?
- Plugin and theme script load order
- Can’t see why my scripts aren’t loading when I register and enqueue them
- Including files in Child Themes
- React JSX in WordPress Plugin Development
- Why won’t my scripts load?
- When to use add_action when registering/enqueuing scripts
- wp_register_script(… $in_footer = true) not working
- WordPress script file version numbers changing in live environment
- Use wp_enqueue_scripts from included php file
- Not sure if enqueuing js scripts properly
- Move jQuery to the bottom of the page whilst keeping the WordPress jQuery
- Change script type and src of plugins in theme
- Is there a way to check for an attribute of a script when using script_loader_tag?
- How to enqueue JavaScript file that depends on CSS stylesheet
- How to force that styles are enqueued in the header?
- Adding multiple wp_register_scripts for templates in WordPres?
- Localizing script to pass a value to a javascript function
- Where is the right place to register/enqueue scripts & styles
- wp_enqueue_script() doesn’t work with AJAX
- Jquery function working in Dev Console but not otherwise [duplicate]
- Register scripts located in child theme?
- Adding JS in header when using wp_enqueue_script in a shortcode
- Enqueuing script is adding extra text for google maps [closed]
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- Trying to get custom js files in my admin header
- Deregister multiple scripts using a function?
- Scripts not loading through function Method in WordPress Theme
- Trying to register script in footer
- WordPress error when replacing local jQuery by externally-hosted
- Tell WP register script to load a script only when the entire page is loaded
- wp_enqueue_scripts does not work
- How to make a customized user registration form using the built in wp-register() template tag
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- how to get wordpress user id when user register
- Modular CSS and JS in Child Themes
- How to add GET variable after script url?