No, unfortunately this is inherent limitation of PHP templates used in WordPress natively. You will have to override either this template file, or file(s) which include it, but in any case something will have to be replaced on whole file scope.
There is no clean way to load template file partially in WordPress, which is handled by template inheritance concept in alternate templating engines.
Related Posts:
- Child Theme Not Overriding Parent Theme
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Not all CSS elements transferring via parent to child?
- Parent theme styles overriding child theme CSS [closed]
- get_template_directory_uri() links to child theme not parent
- 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
- Setting Up Child Theme To Take Priority
- Child Theme not loading multiple stylesheets
- Help with is_page() and calling css for specific pages in a Child Theme
- Functions.php in child theme that loads CSS file breaks website
- How do I make my child theme’s CSS update when I save it?
- get_template_directory_uri pointing to parent theme not child theme
- Include files in child theme functions file
- functions.php inject inline css
- One Child Functions.php for Multiple Child Themes
- How do I create a new WP admin color scheme?
- Logout/login redirect CSS issue
- Implementing DNS Prefetching with WordPress
- Child theme – overriding add_image_size by a child theme [duplicate]
- Add attribute to link tag that’s generated through wp_register_style?
- How to override functions.php in child theme?
- I created a child theme and it doesn’t work for some of the css files
- Is it possible to be more page/post specific with admin_enqueue_script?
- Enqueue styles after a plugin
- How to override enqueued styles using a child theme
- Child theme functions.php not executing
- How to add background image control to page admin controls?
- How to store / access files in child theme folder
- Make “sidebar template” the default template for new pages
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- How do I get a child theme to load scripts from the parent theme?
- Add class or ID to any WordPress function
- how to edit functions.php in a child theme
- Avoid loading css from parent theme
- How to get specified parent page title in my function
- Enqueue Style Only On Certain Pages Not Working
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Creating a child theme – functions.php code issue
- Problem only while using require_once() within functions.php
- Twentyten Child Theme: header images display messed up in admin panel
- WordPress Menuing Question :focus
- change the url paths in the stylesheet dynamically
- Reuse variable in hook callback
- Automatically include all php files in a child theme directory
- Override the function twentytwelve_scripts_styles in a child theme
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- How to load parent theme template parts in child theme
- Running script based on Category
- Is my code correct to enqueue CSS on a specific page?
- Split Media Queries in different files!
- How to edit classes in body tag?
- problem loading stylesheets to wp_head dynamically
- Randomizing wp_tag_cloud() in child theme
- Where do I go to edit this area? [closed]
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Default Nav Highlight
- Unable to point the child theme directory even using get_stylesheet_directory()
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- Child theme function.php causes fatal error
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- How to overwrite template.php file
- Solution dealing with Child Theme / Parent theme functions
- remove/hide wp-editor
- How to override this theme function in child theme
- get_template_directory() – references parent theme directory
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Looking for Functions File that doesn’t Exist
- Include widget file in functions.php of child theme
- Can’t load assets
- Adding a schema code to one specific page using functions.php file
- Add Javascript code to functions.php childtheme
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- CSS style and app.js not loading
- Child theme, how to cut the functions.php file into several classes?
- How do I make a custom “Read More Blogs” button for my blog page
- Replace theme function
- CSS disabled after getting rid of emoji
- How do I create a child theme from PowerMag theme
- How to add styles in existing function?
- How would I correctly implement a new if statement in a child functions file?
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Display list of pages that contain a certain string within the slug
- Correct way of Enqueue self hosted fonts in sass project
- Including admin-options.php file in Child Themes
- Modified functions.php in Magazine Pro theme of Genesis. 500 error
- Child theme style.css didn’t work properly but the Customize Additional CSS did [closed]
- uninstall a theme programmaticlly
- Child Theme functions.php has no effect
- Update add_image_size
- Is it possible to change parameters of Parent theme function in the Child theme?
- Random text changing to weird icons in both admin & front end
- unregister_sidebar in child theme not working
- Unregistering custom tinymce plugin?
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- Child Theme not working – CSS gone
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- How to fix enqueue_styles error for a twenty-seventeen childtheme