How to custom library/structure/ files

Hello!
I’d like to custom library/structure/ files (content-extensions.php,etc.).
I’m using a child theme but since files are loaded in parent theme functions.php:

/** Load Structure */
	require( get_template_directory() . '/library/structure/header-extensions.php' );
	require( get_template_directory() . '/library/structure/sidebar-extensions.php' );
	require( get_template_directory() . '/library/structure/footer-extensions.php' );
	require( get_template_directory() . '/library/structure/content-extensions.php' );

How to use custom files in the child-theme/library/structure/ and load them in child theme functions.php?

Regards.

There is no way for that because child theme will support only basic WordPress theme structure files such as page.php, single.php, index.php etc.

The best option is to take functions from let’s say content-extensions.php and copy theme to Child Theme functions.php file and edit theme there. It will overwrite original functions.

Hey!
I just paste the entire if ( ! function_exists( 'travelify_setup' ) ): ... function travelify_setup()

in my childt theme functions.php

and modify get_template_directory to get_stylesheet_directory.

It works.

Thanks for idea! :slight_smile: