My guess would be that you are remove the action before it is actually being added in the parent theme.
The parent’s theme functions.php file gets loaded after the child one so it looks like your removing something that is not there yet.
The 3rd parameter in remove_action() is the priority. Try playing around with that number – the default is 10 – to see if there is any change.
remove_action() also returns a boolean so you can debug it with
var_dump( remove_action('wp_print_styles', 'az_enqueue_dynamic_css') );
I am assuming as well that you have the action and method names exactly as they appear in the parent theme š
Hope this helps
Related Posts:
- Can“t access child theme“s scripts dependencies found in parent
- Replace function in a child theme
- Add content after get_header
- how can I re-utilize and class on a child theme
- get_template_part vs action hooks in themes
- how can I add an icon/image for a child theme?
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Child Theme vs Duplicate Theme Renamed
- Getting instance variable in scope of ‘wp_enqueue_scripts’
- How to add Color Picker in Theme Options for the following?
- 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)
- How do you enqueue script tags for ReactDOM in WordPress’ functions.php?
- 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?
- CSS in child theme not overriding the parent theme [closed]
- 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
- Create a theme by combining a parent and a child theme
- wp_enqueue_script being ignored in custom theme
- De-registering parent style sheet css recommended?
- 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
- Is it safe to enqueue a font style without putting http or https?
- 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?
- How to Edit the style of header title of Twenty Eleven Theme?
- Is there an action for save_menu and/or update_menu?
- Is my approach to enqueue styles inefficient?
- How to make content editable from admin page?
- Cannot figure out how to overwrite files in child theme
- 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
- Inheritance of parent theme plugin files in a child theme
- Difficulty loading jQuery with wp_enqueue_script
- What happens to child theme if I change to new version of parent theme?
- Injecting a custom sql query into a page/theme
- Child theme enqueue scripts using new functions
- Why is it needed to enqueue parent stylesheet in child theme?
- Show woocommerce categories on my theme menu styling
- 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?
- Can’t remove DIV from hooks in Storefront child theme [closed]
- 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
- Need help with adding templates (archives and sitemap) to WordPress child theme
- save_post action doesn’t passing post id to my function as argument
- Using a starter theme vs starter theme with child theme
- How to create and populate with few links a menu in child theme functions.php?
- Create a child theme from multiple themes
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- Starting point for custom Themes [closed]
- How to fix : Uncaught ArgumentCountError: Too few arguments to function? [closed]
- Why still output /wp-content/themes/twentynineteen?
- Do I need to create a child theme for JointsWP
- How to enqueue a script which is type module without using script_loader_tag filter?
- Questions from a new WP Dev [closed]
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Custom jquery not code not working in wordpress
- Do I need to re-import Susy to work with it in a child theme? [closed]
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Translate a child theme with pure PHP and gettext
- Remove h1 from 2015 theme
- What might cause a featured image not to display?
- add jquery file if a certain page is included
- Converting a theme to a child theme in a network
- How to make a function occurs for one time?
- Understrap-child conditional js script
- Adding google fonts to WordPress theme
- How can I access variables from theme in child theme? [closed]
- How to display home page last modified date in anywhere of wordpress theme?
- Child theme menu not appearing in Twenty Seventeen
- Edit Product Archive design for Woo theme
- How to test another theme in a live WordPress website instead of live preview?
- Duplicate child theme incl. design changes
- Move the social media icons to the left of a WordPress nav menu for Soledad child Theme
- How to connect two child themes on different sub domains to the same base theme
- Editing Them with Child Theme Basics [closed]
- How to customize the colors within a stylesheet using a WordPress setting
- Protecting work on client’s web host
- How to migrate the menu from the site on my own theme in WordPress?
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Suppress the_content filter in a nested loop
- Extending arrays in parent theme without completely overriding the files
- WordPress theme Modifications not showing up on live server
- Enqueue script/style with multiple GET parameters
- add_action works outside condition but not inside it
- Global Navigation menu in diiferrent wordpress setups
- Should I create a child theme for a parent custom theme? [closed]