When using a child theme, get_template_directory_uri() returns the URI of the parent theme, you want to swap that for get_stylesheet_directory_uri(), which will load assets from your child theme directory.
Related Posts:
- Enforcing password complexity
- Can i check if user is doing any ajax request?
- Enqueue less file not working in child theme?
- Hooking new functions to actions + passing parameters
- Execute only on a certain page
- Why do filters/actions require an argument count?
- How to access function from outside of a class within this class in WP plugin?
- How to use return in my custom function instead of echo
- Adding tawk.to code just before body tag on functions.php file
- Adding Default Settings to Theme My Login plugin
- add_action shortcut?
- Modify custom field input data before creating a new post
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- Override a function defined in wp-includes/comment-template.php
- Nested “do” and “add” Actions is possible?
- linking stylesheets and scripts with functions.php
- WordPress redirect redirecting too many times or not at all
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Enqueing External JS on the remote server JS
- Enqueueing a code block from an options framework
- How to pass hook variable to function?
- remove_action from parent theme using child theme functions.php
- How to change order inside foreach using wp_enqueue_script?
- Enqueue sripts and styles only if function is called
- Hook into all password resets in WordPress and get password before hashing?
- remove_action() not working in page template – Genesis
- Unable to pass arguments to function used in add_action
- WordPress HTML Helper
- Highlight posts currently being edited on multiple editor site?
- Adding Gravity Form With if(is_page) Is Not Working
- Warning: filemtime(): stat failed for wp_
- Why a class property becomes empty?
- Is there a hook that I can use when a fatal error occurs?
- Execute wp_after_insert_post after the permalink is customized
- WordPress generating Undefined Variable warning
- Is there a way to conditionally check whether a WordPress post title is empty?
- Use .php file as page instead of wordpress page & template file?
- Illegal string offset in PHP function
- Find hours between post_date and post_date_gmt
- Run a code only on theme activation only during first activation
- Shortcode from a function not working
- Displaying text if post was within 5 hours
- Creating WordPress Shortcode with Variable
- Convert the_permalink() function output into string
- Adding a tag_ID column into Categories inside the admin dashboard?
- Add meta tags to a custom header
- woocommerce specific quantities for product
- My website is not showing Footer section
- get_current_site() is undefined
- Automatically Add Page Links to Nav Menu
- blank white page when post/update/change option etc
- Function sanitize_title() does not appear to be working
- Must filter functions receive all arguments passed to them?
- How to Display a List of Child Pages For a Parent Page in WordPress
- writing an unique php function to be used on my website
- Displaying Slider in Front Page (home) using Customizr Theme
- How to add PHP pagination to wordpress
- How to prevent a function from running based on host (ie web vs local)?
- Taxonomy term description with style, only if the description exists?
- How to change the author box selection on a post to a custom taxonomy
- Output product category link from WP_Query
- Adding onload to body for certain pages
- Delete images from media library when user deletes an image from ACF Gallery
- How to send a php var to jQuery Ajax call with two different file
- Change wordpress’ database data using ajax – how to get current user id?
- copy fields value to another field
- not outputting medium size image URL
- Get parent category name when only child category is applied to a product
- Best way to use variables in multiple functions?
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Notice: Undefined variable
- Before & After Content – After Content directly below Before Content when using require_once
- Cannot fetch posts with certain ‘product_cat’. WP_Query is empty
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Offset with ajax load more posts duplicates
- How fix error in the WordPress loop?
- Need help with PHP functions
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- WordPress styling recent post
- syntax error unexpected ‘}’ at 364 line
- get_post_meta no longer working
- ISOTOPE – Missing/Invalid Arguement Get Terms
- Showing all post from all post type in admin backstage
- WordPress Plugin Receive a Link
- Pagination not displaying
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- Shortcode to include PHP file, pass various parameters to include?
- Why can’t I include echo inside a variable? [closed]
- Assign new post author IF another user in custom field on post transition
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- How do I change the Go To Categories link in the term_updated_messages
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- Hide category by tag
- How to change wp-admin and wp-login urls
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- Background Tasks in a WP Cronjob?
- Add/Modify rel=canonical of all the pages of a wordpress website
- Calling a PHP function from a menu item