Hello you would have to edit the parent theme as there is no way to overwrite the include_once 'bookingtable/bookingtable.php';
.
So to keep edits to the parent theme minimal, the whole code can be rewritten using wordpress get_template_part()
as
if ( class_exists('rtbInit') ) {
get_template_part('bookingtable/bookingtable');
}
This way you can then copy the file to your child theme and make edits there.
Related Posts:
- Serving precompressed content with Brotli on Apache
- How can I avoid code duplication for a blog with lots of source code?
- How to rename wp-includes folder?
- What’s the correct way to include files in WordPress TwentyTen theme with it’s own jquery scripts and css?
- ABSPATH not working! Any idea why?
- Get current user data from external PHP page
- External system integration with wordpress
- Why does get_template_part() break variables?
- How to pass variables with get_template_part?
- Problems Including File
- How to include core files into plugin
- How to check if txt file exists inside template folder?
- What’s the best way to ‘include’ a file in WordPress?
- locate_template function – File not getting included
- Can not include file from plugin into theme
- Include tags from array, ignore the rest in get_the_tags
- PHP files included within functions.php don’t work from admin area
- Wp Enviroment problem with included file
- Having trouble linking to file using relative path
- How can I include an external file in a post or page?
- Including php file in directory above WordPress installation
- add_feed failed to open stream
- Load content From Include File within plugin
- including Zend Gdata library path error
- What about “inc” (include) files and Child Theming? Is it possible?
- Make changes in /includes/http.php update safe
- Class works in Admin, not found on Front End
- if statement parent page for child pages
- add_action outside a plugin
- Add page as static html into another page
- Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin
- C++ #include guards
- How do I include a JavaScript file in another JavaScript file?
- What is the difference between a .cpp file and a .h file?
- Override parent theme translation on child theme
- Child theme – Overriding ‘require_once’ in functions.php
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Child Theme vs Duplicate Theme Renamed
- Theme Customization API and child themes
- Include files in functions.php
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- How to Add Customizer Setting in Child Theme
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- Namespacing WordPress project according to FIG standards
- Do I need to update the child theme too after updating the parent?
- WordPress “include TEMPLATEPATH” or?
- Removing a Parent Theme’s Menu Items
- How to include template according to meta post value
- Use admin options from parent theme in child theme
- Using Includes in Templates in Document Head
- How to “remove” file from parent theme
- add sidebar area to header of child theme
- where to include a php file
- Passing variables to template parts
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Should I ask a theme developer to use locate_template rather than require_once
- Conditional Ajax inclusion
- Using the child theme functions.php to change the customizer.php on parent theme
- How can I remove css from a child theme?
- Can I change a variable in a content part while calling it?
- the_author() not working outside the loop
- Passing variable from child theme to parent theme
- Load parent theme files before child theme functions.php
- Put CSS inside a PHP file and include it the right way
- How to query posts to include specific pages of one post type, and all pages of another post type?
- What happens to child theme if I change to new version of parent theme?
- Calling a Function in Functions.php from an external PHP script
- Help with child theme enqueuing additional css files
- code is skipping a div
- How to preserve changes in templates and other files
- get_option() not returning expected value from plugin
- why this media query is not working / not loading when I put it in child theme?
- include php file if page_id matches
- append to existing parent theme function
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- php include not working in custom page
- What are the best practices for maintaining and deploying several parent themes?
- Is it necessary to network enable both the parent and child theme for multisite installations?
- require_once not working
- Referencing parent theme image from child theme
- Pull in an “Include” file based on a WordPress Category ID
- Can I place “parent theme” inside a child theme folder?
- How to override html codes in wordpress?
- How do I fetch a data from an external database into my wordpress homepage
- Theme installation error “The parent theme could not be found”
- Strange Theme Error – parent style occasionally showing though child theme
- require happens out of order
- Theme parts path location dump
- Undo a function that is not (seemingly) hooked to an action?
- post content includes and seo vs. duplicate content
- Shortcode not passing variable to included file
- How to include a php file in every post and page [duplicate]
- White Screen When Includding A Folder With PHP Files
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Should I create a child theme for a parent custom theme? [closed]
- Javascript file not included only on home page
- WP-Include rewrite directory