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
- How to Use Webpack with WordPress Script Modules and Enqueue a Custom Class
- get_template_part vs action hooks in themes
- how can I add an icon/image for a child theme?
- after_setup_theme always runs
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- How to override pluggable function in theme?
- WooCommerce shop page to use my custom template [closed]
- How to enqueue script if widget is displayed on page?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Child Theme vs Duplicate Theme Renamed
- Hide a div that is part of all pages on one specific page
- Why I can’t add a CSS style in this WordPress theme?
- Getting instance variable in scope of ‘wp_enqueue_scripts’
- How to add Color Picker in Theme Options for the following?
- The difference between calling wp_enqueue_scripts to load scripts and styles in custom theme
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- 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)
- What is a good way to pass a variable from add_action to a Theme?
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- What can I hook into after_setup_theme?
- What does “Do not deregister the jquery script in the administration area” mean?
- How to access certain WP functions inside custom class, in theme folder
- add generated stylesheet from parent theme after child-themes style.css
- add_image_size is scaling, even though crop is set to true
- How do you enqueue script tags for ReactDOM in WordPress’ functions.php?
- Theme elements not translating
- Change Genesis Tag from Page Template [closed]
- 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?
- using wp_enqueue_script to attach jquery-ui
- CSS in child theme not overriding the parent theme [closed]
- Modifying JS files in Child-theme
- 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
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- How to keep my custom theme changes after updating genesis child theme
- wp_enqueue_script being ignored in custom theme
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- De-registering parent style sheet css recommended?
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- 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
- Getting jquery to work with custom theme
- Can a child theme based on Starker theme be released as free to use theme for public use?
- Is it safe to enqueue a font style without putting http or https?
- Override Constants in Child theme
- What’s the best action to use when you want to do something only once per theme setup?
- Changing order title and featured image in blog post (Astra theme)
- Loading files for theme and child theme (Require)
- How to write .htaccess dynamically? [closed]
- Adding wp_enqueue_media(); causes problem
- 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?
- Use debugging for add action events
- after_setup_theme, Global Variable and Theme Customizer
- Child themes: disabling the parent
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- How to Edit the style of header title of Twenty Eleven Theme?
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- Is there an action for save_menu and/or update_menu?
- Including Javascript options
- Is my approach to enqueue styles inefficient?
- Child theme style.css versioning
- How to make content editable from admin page?
- functions.php not hooking up with style.css
- way to include own functions independent of theme
- Cannot figure out how to overwrite files in child theme
- How to To Filter wp_enqueue_script() Scripts on Some Pages
- How to add theme support?
- 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
- How to add Bootstrap Tour JavaScript to WordPress Admin Panel Dashboard Widget
- Inheritance of parent theme plugin files in a child theme
- Difficulty loading jQuery with wp_enqueue_script
- Divi Child Theme not appearing in “Themes” [closed]
- jQuery not available to other scripts
- Override template file i subfolders
- What happens to child theme if I change to new version of parent theme?
- Include Parent functions.php in Child Theme functions.php
- Injecting a custom sql query into a page/theme
- Select full Image Size on widget “Genesis – Featured Posts”
- Does the switch_theme action run when you’re upgrading a theme?
- How to first edit in local WordPress editor on page and the add code?
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- Child theme enqueue scripts using new functions
- Why is it needed to enqueue parent stylesheet in child theme?