In functions.php
child theme include template-tags.php
from parent theme:
require_once get_theme_file_path( '../parent-theme/inc/template-tags.php' );
In the child theme template-tags.php
remove parent action and add the child action replacing it:
remove_action( 'tag', 'parent-function', 0 );
add_action( 'tag', 'new-child-function', 10 );
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Creating new templates in child themes breaks layout
- How do I bring a page template into a new theme with separate styling?
- How to move the sidebar in TwentyFifteen to the right?
- Override parent theme translation on child theme
- How to set thumbnail image for a (child) theme
- Do Child-Themes automatically load the Translation from the Parent-Theme?
- Difference between stylesheet_directory and template_directory
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Jquery in Child Theme
- Removing Shortcodes from Child Theme
- Edit theme wp_head
- Are custom inner theme folders in any way overridable by child themes?
- How to avoid loading style.css twice in child-theme?
- Can I obtain differents links for different installed theme?
- Override parent theme translation on child theme
- WordPress ignoring specified template for front page. Why?
- Child-theme breaks site
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- How to add template to theme in WP
- Change logo on each page of University Hub theme [closed]
- How do I copy my Parent Templates to my Child Templates?
- Can I create multiple instances of the BuddyPress Activity Stream with separate themes? [closed]
- Can’t Install Child Theme “The parent theme is missing. Please install the “Default” parent theme.”
- Can I rename a theme’s folder and still receive updates?
- Child theme not visible
- Overwriting templates in child theme and performance
- Themes—Child Themes
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- How to load parent theme style.css?
- Child theme not using parent theme css/styles/formatting?
- Child Style.css not overriding parent theme style located in assets/css/main.css
- Child theme Page Template not loading
- What is the major difference between child theme and normal theme
- Should a child theme share the same theme options row as the parent, or should it have it’s own options row?
- Inject widgets from one sidebar into another with PHP
- Override template file i subfolders
- Where all are child themes recorded when they are created in WordPress
- I have some doubts regarding how to implement child theme
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- How do I get rid of or change the footer in my child theme?
- Edited Child Theme’s “header.php” but it doesn’t appear to change the file
- Updating my free theme delete all my changes [closed]
- Getting 503 on various files
- Port existing Bootstrap site to WordPress?
- Do not show one specific widget on one specific page
- Search form not finding content in template page
- How can we hide the parent’s theme url at the child themes details on a multisite?
- Is it possible to create child themes using the WordPress Dashboard?
- How to make “upgrade safe” theme for a plugin?
- Selected template is not respected for home page in WordPress
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- Need help with making a website where user can add products
- how do i in ignore/disable/delete a javascript call from parent in child theme?
- What’s a good way to unenqueue all scripts for a single template page?
- Enqueue custom css file on specific page
- Child theme’s stylesheet cannot load [closed]
- Creating a child-theme: CSS not loading
- simplified explanation on child themes?
- Using the same database on another Subdomain
- How to override theme class function to child theme? [closed]
- What’s the default order used by WordPress to load CSS files?
- The requested theme does not exist. Stylesheet is missing – error after changing style.css name to my-styles.css in wp child theme?
- Trying to fix a website that was built with WordPress and then taken off of it
- How can I remove all traces of a theme?
- WordPress activate theme error $pagenow
- Theme update deleted my custom page
- Updating WordPress Theme Files
- Homepage showing a simple listing of title, featured image, then posted on
- Where did my Theme Editor go?
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- WordPress Theme Breaking on Migration to Live Site [closed]
- Multiple sub directories for theme template pages
- How to remove the tripadvisor logo from the wordpress theme?
- Please help me clear my confusions about WordPress
- Switching among theme customizations
- WordPress keeps switching back to empty template
- Child theme not activating despite success message
- Removing a widget via theme editor
- Understanding the child / parent theme relationship
- My theme is adding an unmatched end tag and outputting it to my screen
- How to customize a section of a widget only on certain pages or page
- Custom homepage with recent blog posts
- Why does WordPress Editor Only Use Half the Box?
- Strange Theme Error – parent style occasionally showing though child theme
- How to allow users to switch to the child theme from front end without plugin?
- Revamping a WordPress mirror site – and I don’t know where to start!
- adding a unique page to an existing site
- How do you make your theme Child Theme-able? [duplicate]
- How to find out which template the HTML content comes from?
- Create a child Theme or custom Theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- What happens to bespoke page template references on theme change?
- How to add sidebar to homepage programmatically?
- how to add dynamic footer credit in Greatmag theme [closed]
- Obtaining the original unchanged Theme [closed]
- Get header/footer list for a theme