You can’t replace the function, but you can substitute it:
- Copy the function to your child theme’s functions file.
- Rename the function.
- Modify it as needed.
- Find the template file that references it, such as header.php, and copy that to your child theme.
- In your child theme’s new template file replace the reference to the original function with your renamed version.
Related Posts:
- Override parent theme function that is not hooked or in the functions.php file
- Override parent theme function that is not hooked or in the functions.php file
- How to override parent functions in child themes?
- Child theme – Overriding ‘require_once’ in functions.php
- Declaring an instance of class included in parent theme from child theme functions.php
- override parent theme configuration in child functions.php
- syntax for remove_filter in parent theme with class
- Is it possible to override this function/class in a child theme?
- How to override filter in child theme?
- add sidebar area to header of child theme
- Should I ask a theme developer to use locate_template rather than require_once
- Using the child theme functions.php to change the customizer.php on parent theme
- override parent theme configuration in child functions.php
- Proper way of using functions in action hook?
- Avoid loading css from parent theme
- How can I change a function in a parent theme via a child themes functions.php
- How to load parent theme template parts in child theme
- append to existing parent theme function
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- How to edit classes in body tag?
- overwrite code snippet from parent to child theme
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- get_template_directory_uri() links to child theme not parent
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- remove_action not working, even after changing priority [duplicate]
- Removing parent theme CSS without editing parent theme
- Any adverse effects of adding apply_filters to a function?
- how can I add filter in specfic field in my website?
- How Do I Unhook This Parent Theme Function?
- How do I create a child theme from PowerMag theme
- Problem with Child-Theme using of foundation-framework [closed]
- Add Adsense code between job listings – wp job manager plugin
- How to remove admin footer text from inside child theme?
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- Problem with images URL after filter applying
- How to overwrite template.php file
- Passing variable from child theme function to parent theme filter
- Solution dealing with Child Theme / Parent theme functions
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- remove/hide wp-editor
- How to use parent theme functions in child theme functions.php file?
- How to override this theme function in child theme
- get_template_directory() – references parent theme directory
- Replace header image on all other pages but home – URL issue
- Child theme functions.php
- Add a class to post if it has been recently updated
- search form leads to 404
- Change custom featured image size in twentythirteen child theme
- how to add_filter to non hook function
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Changing the text of Upload/Insert on Posts and Pages Screen
- Looking for Functions File that doesn’t Exist
- Conditional custom menu?
- Get URLs for AJAX Filter Checkboxes WordPress
- Include widget file in functions.php of child theme
- Get webpack to work on child theme
- How to remove font awesome from loading in wp theme
- How to display an image before title text in menu items
- Adding custom social icons to the social media icon block in the Gutenberg editor?
- Customizing the wp_video_shortcode output with add_filter
- Filter works on last selection but no others
- Overwrite text in a complicated filter hook
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Adding a schema code to one specific page using functions.php file
- How to add HTML into error message
- Save_post – Warning: Cannot modify header information
- Add Javascript code to functions.php childtheme
- custom error message for empty username and password using authenticate filter not working
- Removing comment lines from all enqueued js files using a filter function
- Add #primary at the end of navlink permalinks on single posts
- post value to function with Ajax and jQuery
- remove_filter function to unhook twentysixteen parent theme function
- Widget is displayed in two places
- Allow user only create specific tags
- only update titles of single posts
- OOP Switch statement with array as parameter
- Plugin function in child theme
- How to add javascript code into Divi child theme?
- Child theme remove parent filter in functions
- Child theme, how to cut the functions.php file into several classes?
- How can I automatically delete comments that contain a URL?
- Replace theme function
- Appending „read more” to the excerpt conditionally
- How to add class dynamically from templates
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Setting Up Child Theme To Take Priority
- Change default color scheme in twentyfifteen child theme?
- Create New User Custom Field not Saving
- function replace_text for entire page
- How would I correctly implement a new if statement in a child functions file?
- add product thumbnail to checkout page only and include variation name
- Redirect specific author posts to another url
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- ACF Filter return value
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Child Theme not loading multiple stylesheets
- Graphic before title – Specific Category
- Which method is more correct for removing WooCommerce Extensions menu item?
- $content is empty while using DOMDocument