Your child theme functions.php
loads before the parent theme’s, so you’re trying to remove the action before it’s added by the parent theme.
Hook after_setup_theme
to remove/add, which is executed after both child and parent load.
add_action( 'after_setup_theme', 'wpd_wp_head_function' );
function wpd_wp_head_function() {
remove_action( 'wp_head', 'woothemes_wp_head', 10 );
add_action( 'wp_head', 'woothemes_wp_head', 2 );
}
Related Posts:
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- add_image_size is scaling, even though crop is set to true
- 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?
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- Override Constants in Child theme
- how can I remove the sidebar from my wp homepage [closed]
- Does any theme support child theme?
- Am I supposed to create a child theme for every theme I use?
- How to remove a file included in parent theme with locate_template() via child theme?
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- Override template file i subfolders
- Include Parent functions.php in Child Theme functions.php
- Why is it needed to enqueue parent stylesheet in child theme?
- Child Theme’s style.css not loading in mobile browser
- Renaming a theme so it aids SEO and the theme used is hidden
- Overrite parent functions using child functions
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Starting point for custom Themes [closed]
- Simple child theme modification but links are broken
- Why still output /wp-content/themes/twentynineteen?
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- LESS not working in WordPress [closed]
- Remove h1 from 2015 theme
- Converting a theme to a child theme in a network
- How to modify theme content in Thematic?
- Why front-page.php doesn’t show content of file instead shows loop
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How can I access variables from theme in child theme? [closed]
- How to display home page last modified date in anywhere of wordpress theme?
- What is an alternative to not using child theme to customize a WordPress theme?
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- Child theme menu not appearing in Twenty Seventeen
- How can I fix my theme header for my CSS stylesheet?
- How to test another theme in a live WordPress website instead of live preview?
- Update modified Shopify third-party theme [closed]
- how can I re-utilize and class on a child theme
- Providing updates to your WordPress theme
- How do child themes work?
- How to migrate the menu from the site on my own theme in WordPress?
- adding navigation to genesis themes
- Standard Way To Do Custom Work Within A Page?
- Image Size wrong during upload
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Where do I find the functions triggered within a hook?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- index.php is not loaded for single posts
- Is it a good idea to make whole theme widgetized?
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Child theme style.css versioning
- Gutenberg – editor-font-sizes in functions not working
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Inheritance of parent theme plugin files in a child theme
- My Admin bar covers my sticky navbar [closed]
- Single Page Design, Storing in Theme Options
- Child theme enqueue scripts using new functions
- Show woocommerce categories on my theme menu styling
- loading blank white screen of slide
- How to Find the Page the Front Page is Using?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to Have a Pure HTML Sub Directory In WP Site
- WordPress page/blog incorporated into static website
- Random white space before doctype
- How to add menù section to my WordPress template?
- Theme Development -> Specific Homepage
- Do I need to create a child theme for JointsWP
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Post archives link yields a 404 Not Found
- Get video from the post on homepage
- WordPress Themes Directory: Template which hits the standards?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Let user to upload multiple time
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- Is_single not working properly in genesis
- How to make menus, footer, sidebars multi language
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- register_theme_directory() sees custom themes directory, but blank frontend
- Child theme in separate WordPress Install
- How to show children pages as array
- Using Customizer value in an external PHP file inside a theme
- Using wp_enqueue_script with social media buttons?
- What to do when child theme is out of date with parent theme
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- How to create full header but keep content narrow
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- My wordpress site memory exhausted more than 1GB trying to debug with default