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
- Enqueue Scripts / Styles when shortcode is present
- Where is the right place to register/enqueue scripts & styles
- How to override JavaScript files in child theme?
- wp enqueue inline script due to dependancies
- wp enqueue style on specific page templates
- Is it possible to use wp_localize_script to create global JS variables without a specific script handle?
- How do I get the $handle for all enqueued scripts?
- How to load css in the footer [duplicate]
- How can I get a list of all enqueued scripts and styles?
- Load CSS/Javascript in frontend conditionally if block is used
- Prevent Version URL Parameter (?ver=X.X.X) on Enqueued Styles & Scripts
- Register a script to be enqueued both in admin and front end
- How can I enqueue protocol relative external (//ajax.googleapis.com/…) scripts?
- Can’t enqueue scripts in the footer?
- How can I remove the site URL from enqueued scripts and styles?
- How can I de-register ALL styles all at once? And same with Javascript?
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Loading a script with a dependency, is unloading another script’s dependency
- Register and enqueue conditional (browser-specific) javascript files?
- Correct Method to run scripts with dependencies without enqueue?
- wp enqueue script using scripts from cdn with a safety callback
- Can I add styles to footer with $wp_styles->add_data?
- Conditional wp_enqueue_script on a page
- Enqueue custom font file with rel=”preload”
- Load js/css files only on specific admin UI pages
- Protocol neutral URLS with wp_enqueue_script (SSL issues)?
- Enqueue script in specific page
- Removing specific style from wp_head
- How to en-queue bootstrap 4 to theme?
- Notice that the wp_enqueue_style is not being called correctly!
- Why is jquery-ui-core enqueueing in my footer instead of the header?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Is it safe/recommended to use wp_enqueue_script function outside the functions.php file?
- wp_enqueue script my_javascript_file in the footer
- Using wp_enqueue_script on shortcode function handler
- Get the list of enqueued/registered scripts for a specific post?
- How to load JQuery easing script in wordpress?
- Enqueue script only for IE
- Hook for writing text string after footer scripts
- Is This The Most Efficient Way To Add Javascript Files?
- Why does this line of code make photo albums appear?
- Add script to footer – on post editor
- Which action to hook wp_enqueue_script to? wp_head or wp_enqueue_scripts? [duplicate]
- wp_register_script multiple identifiers?
- Issue with using Underscore in WordPress
- Conditionally dequeue dependency of scripts
- Trying to load different syles for 404.php page
- Enqueue Script with URL parameters
- What determines the order of enqueued styles?
- Track down where script is being enqueued from