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]
- Remove Actions/Filters added via Anonymous Functions
- Include files in child theme functions file
- Add class to menu items of one specific menu (nav_menu_css_class)
- How to influence the information displayed on widget inside wp-admin
- Filter the query ONLY for the search results page
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Customize WordPress Media Manager – Media Window
- Implementing DNS Prefetching with WordPress
- Child theme – overriding add_image_size by a child theme [duplicate]
- How to override functions.php in child theme?
- Remove Page Title from Static Frontpage
- Default or Preset Content for Custom Post Types
- Override a class function to include a custom template
- I created a child theme and it doesn’t work for some of the css files
- Child Theme Not Overriding Parent Theme
- How to store / access files in child theme folder
- How to use IF Statement in WordPress?
- Gravity Forms field entries into wp_query loop [closed]
- Post Pagination Showing Same Posts Every Page
- modify a function filter
- How would go about if I just want a temporary function?
- Generating rel=prev and rel=next only on wordpress categories
- How do I get a child theme to load scripts from the parent theme?
- how to edit functions.php in a child theme
- Get current page_id before loop, in functions.php
- Which action hook to use for function?
- str_replace function in theme
- Modify a function without editing template
- Problem only while using require_once() within functions.php
- How to add nav menu items to a specific position within a menu
- Disable auto-resizing of uploaded images, but only for certain filename
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Add to cart php not working [closed]
- Is possible add icon in title posts only in specific tag?
- Adding an external HTML link to a post thumbnail
- Automatically include all php files in a child theme directory
- Override the function twentytwelve_scripts_styles in a child theme
- woocommerce change currency per category [closed]
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- Setting a default text for excerpts of a particular category
- Can’t properly set the_title add_filter to show short_URL
- (Woocommerce) Order by price when entering specific category
- How to add custom li item to wordpress menu
- Child theme function.php causes fatal error
- Insert Content Before div#main from the functions.php File
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- Passing variable from child theme function to parent theme filter
- Solution dealing with Child Theme / Parent theme functions
- How to override this theme function in child theme
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Changing the text of Upload/Insert on Posts and Pages Screen
- Conditional custom menu?
- Get URLs for AJAX Filter Checkboxes WordPress
- How to display an image before title text in menu items
- Filter works on last selection but no others
- Replace theme function
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- How would I correctly implement a new if statement in a child functions file?
- Redirect specific author posts to another url
- Child Theme not loading multiple stylesheets
- $content is empty while using DOMDocument
- Including admin-options.php file in Child Themes
- Best way to add image to recent posts widget?
- Removing get_template_part in child theme
- Is it possible to change parameters of Parent theme function in the Child theme?
- Functions.php in child theme that loads CSS file breaks website
- Unregistering custom tinymce plugin?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback