Support » Installing WordPress » Child theme not overwrite files in folders

  • I’ve activate my child theme and it reads the file in the core folder, such as style.css and footer.php, but when it comes to the files in other folders such as “inc” it dosen’t read them. I can not understand why.

    Here’s my functions.php code

    if ( ! function_exists( 'neobeat_child_theme_enqueue_scripts' ) ) {
    	 * Function that enqueue theme's child style
    	function neobeat_child_theme_enqueue_scripts() {
    		$main_style = 'neobeat-main';
    		wp_enqueue_style( 'neobeat-child-style', get_stylesheet_directory_uri() . '/style.css', array( $main_style ) );
    	add_action( 'wp_enqueue_scripts', 'neobeat_child_theme_enqueue_scripts' );

    I tried to copy all the files from the parent theme, but that didn’t help me either.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p


    I recommend asking at your theme’s support so the theme’s developers and support community can help you with this.

    Thread Starter Linosa


    Thank you. I’ve tried that but no luck yet.

    What files isn’t it “reading”? Can you give an actual example of a file and where it is in the directory structure of your child theme.

    Thread Starter Linosa


    None of the files within a folder works :/

    But here’s an example:

    instead it reads:

    I am also using the child-parent theme combo. and I didn’t face any issues.

    How are those files actually being called? It’s only template files that are checked like that. Any files that are part of a normal includes function (include() or require()) won’t check for anything different in a child theme.

    For something like that, you’d need to add an include() or require() call in your themes child themes functions.php file.

    Thread Starter Linosa


    Ah, so it’s only the normal files like single.php and footer.php that works? I didn’t know that.



    It’s that, but also can be any files called by get_template_part() or other template functions. Files that are just code for functions, classes, etc, don’t. If the theme is written in the right way (using if(function_exists(‘name’) calls) you can override the functions by adding them to your child theme before the parent theme is loaded, but that’s the extent of what can be done.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.