get_template_directory
looks in the parent theme for files.
In the case a child theme is being used, the absolute path to the
parent theme directory will be returned. Use
get_stylesheet_directory() to get the absolute path to the child theme
directory.http://codex.wordpress.org/Function_Reference/get_template_directory
This file is not meant to be replaced. You will need to find another way to do what you need to do.
Perhaps remove the function hooked here and add your own?
Related Posts:
- How to properly dequeue scripts and styles in child theme?
- Child Theme – what is the scope of overwriting files?
- Including style.css in Child Theme
- Modular CSS and JS in Child Themes
- When should I use wp_register_script() with wp_enqueue_script() vs just wp_enqueue_script()?
- How do I dequeue a parent theme’s CSS file?
- Check if a script/style was enqueued/registered
- Cannot deregister a script using wp_deregister_script
- How to dequeue / deregister any theme styles and scripts
- Hyphens vs. periods in the script slug in wp_register_script?
- jquery script not enqueued in child theme
- enqueue and localize script in footer
- Adding Custom Javascript to Skeleton Child Theme
- How to Add a Custom Script to Customize.php
- wp_enqueue_script vs. wp_register_script
- Best way to enqueue extremely popular scripts like bootstrap and font awesome
- How to dequeue / deregister parent theme style
- Best spot for wp_register_script() and wp_register_style()
- wp_enqueue_script with dependencies doesn’t work
- Register script/style: Is it possible to customize the version query string via plugin?
- Help with enqueing scripts in footer after init action
- 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`?
- getting a js file for one page
- Can’t see why my scripts aren’t loading when I register and enqueue them
- WordPress script file version numbers changing in live environment
- How to create a child theme with multiple css files.
- Change script type and src of plugins in theme
- How to enqueue JavaScript file that depends on CSS stylesheet
- Adding multiple wp_register_scripts for templates in WordPres?
- Localizing script to pass a value to a javascript function
- Enqueuing script is adding extra text for google maps [closed]
- get_stylesheet_directory() in child theme breaks parent scripts
- Deregister multiple scripts using a function?
- wp_enqueue_scripts does not work
- wp_enqueue_style referencing parent theme
- If a Script has been enqueued but not registered can I still removed it?
- include jquery plugin file not working
- How to use wp_register_script / wp_enqueue_script for multiple queries
- How to register script with null value for version?
- Using wp_enqueue_script on scripts that contain PHP
- Stop a plugins js and css from loading on all pages and show up only where it is called
- Enqueue registered dependencies only when necessary
- How to get, in WP page’s script, a wp enqueued script (in Functions.php)?
- css3-mediaqueries-js failing with child theme
- wp_enqueue doesn’t load dependencies
- Why do WordPress adds the id=”handle-{js|css}” attribute to scripts and stylesheet?
- Dequeue/deregister scripts for everybody but the administrator
- How can I get a list of all enqueued scripts and styles?
- Load CSS/Javascript in frontend conditionally if block is used
- Removing specific style from wp_head
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Using wp_enqueue_script on shortcode function handler
- Enqueue script only for IE
- Conditionally dequeue dependency of scripts
- How to switch css files according to devices and button click?
- Performance-wise, is it better to enqueue a (small) script on every page or test to see if it’s needed?
- How to load script-related styles automatically?
- wp_head() – list hooked actions with priorities?
- Retrieve URL of Script/Style and Dependencies
- Can’t load JS File
- React JSX in WordPress Plugin Development
- Cannot dequeue script in child theme
- How to set cookies to switch style sheets when a link is clicked and set it till another particular link is clicked?
- How to enqueu php files with custom variable & conditionals?
- Not sure if enqueuing js scripts properly
- How to enqueue the script without hardcoded in the theme files?
- Why is .map being added to the end of my file path?
- Wp_enqueue is not printing the version
- How can I properly enqueue tags in WordPress to use with Web Components?
- JavaScript enque stopped working
- Not all my scripts are enqueueing
- browser showing connection was reset while accessing posts from local host
- Overide enqueue in non plugable function via child theme
- add WordPress script to page conditionally by category
- load jquery in footer not working
- I want to set global directory locations for my CSS and JS locations. How?
- Fatal error: Call to undefined function wp_enqueue_media()
- wp_enqueue wont work on some files?
- javascript file is not enqueing
- Enqueueing Scripts and Styles to page template that has html
- Calling wp_localize_script in a different function
- thickbox never gets called (weird behavior)
- Modifying an enqueued script URL
- When to use wp_register_script() function?
- wp_enqueue_scripts action from a plugin overrides theme wp_enqueue_scripts no matter what the priority setting
- JavaScript code do not works on online server
- Trouble with wp_enqueue_script
- Can’t get jquery script to work
- Proper use of wp_localize_script?
- Prevent caching when using wp_enqueue_script?
- Should I be enqueueing styles/scripts once and then dequeueing them?
- List all non-admin enqueued files
- How to load default wordpress scripts
- How do I display the handle for all front-end enqueued scripts in plugin options page?
- Enqueueing Script to footer puts it at the very bottom
- wp_script_is(‘enqueued’) true, but file not requested in HTML
- Should I use wp_register_style(), wp_enqueue_style, or both?