If the parent-Theme function in question isn’t either pluggable (i.e. wrapped in a if( ! function_exists( $function ) )
conditional) or filterable (i.e. returns its output wrapped in a apply_filters( $filtername, $output )
), then there’s no easy way to override the function.
You’ll have to do one of the following:
- Replace all template files that contain instances of the function call, and replace those calls with your own child-Theme function, in all such templates
- Modify the parent Theme, to delete (or make pluggable) the function in question
Related Posts:
- Add content after get_header
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Nesting Functions within Functions
- Overide enqueue in non plugable function via child theme
- Get the blog page URL set in Options
- remove_action on after_setup_theme not working from 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”
- Change admin bar to default:off
- Create “File-less” Page Template in Functions.php
- Getting instance variable in scope of ‘wp_enqueue_scripts’
- How to add Color Picker in Theme Options for the following?
- When to use esc_url, esc_html, esc_attr, and friends?
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Child Theme not loading parent CSS
- add_image_size is scaling, even though crop is set to true
- How to override functions.php in child theme?
- Override default cropping in WordPress [duplicate]
- How do I get my child-theme to work with my theme’s includes folder?
- Get password when user registers and save it sha1 into database
- Change parent theme file function in child themes functions.php
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- Reuse variable in hook callback
- CSS in child theme not overriding the parent theme [closed]
- Optimal solution to develop a wordpress theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Create a theme by combining a parent and a child 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
- Override Constants in Child theme
- Overwrite Parent Theme add_image_size in Child Theme
- how do you create an admin interface in plugin for your theme
- Am I supposed to create a child theme for every theme I use?
- How to determine which custom header image is being shown
- How to Edit the style of header title of Twenty Eleven Theme?
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- trying to use wp_handle_upload with ajax
- Child theme style.css versioning
- 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
- Can I change header.php of current theme through a plugin function?
- 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
- Injecting a custom sql query into a page/theme
- Child theme enqueue scripts using new functions
- Show woocommerce categories on my theme menu styling
- Child Theme’s style.css not loading in mobile browser
- Theme Customizer not loading JS for live preview
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- How to properly create a child theme
- Renaming a theme so it aids SEO and the theme used is hidden
- Overrite parent functions using child functions
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Replace single_template filter with what for default posts?
- 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
- 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]
- Starting point for custom Themes [closed]
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Why still output /wp-content/themes/twentynineteen?
- Do I need to create a child theme for JointsWP
- Why is switching between themes breaking my child theme?
- How to override template files in parent theme?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Removing “Powered by” footer using child theme PHP [closed]
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- LESS not working in WordPress [closed]
- Translate a child theme with pure PHP and gettext
- Different themes on one site
- Remove h1 from 2015 theme
- Can’t change theme name
- How to make excerpt image be full size instead of thumbnail?
- How to make a function occurs for one time?
- How Do I Unhook This Parent Theme Function?
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- How to show metabox on page if it is using a template
- Is_single not working properly in genesis
- How to test another theme in a live WordPress website instead of live preview?
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Editing Them with Child Theme Basics [closed]
- Child theme in separate WordPress Install
- Update modified Shopify third-party theme [closed]
- How to show children pages as array
- Hook in parent theme Menu function
- Protecting work on client’s web host
- Why WordPress gets old templates code instead of the last updated ones
- Suppress the_content filter in a nested loop
- adding navigation to genesis themes
- loading custom.js file after jquery is loaded
- What to do when child theme is out of date with parent theme
- Image Size wrong during upload
- Twenty sixteen – full height
- Is there a way to prevent wp_head from outputting self-closing tags?