Cannot figure out how to overwrite files in child theme


I’m using the catch-base theme as a parent theme and have the following code in functions.php

function my_theme_enqueue_styles() {

$parent_style = 'catch-base';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme',
    get_stylesheet_directory_uri() . '/style.css',
    array( $parent_style )
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

I for-the-life-of-me cannot figure out how to overwrite any of the template files through the child theme. I have tried the suggestion on the catchthemes website, but just using the same directory structure isn’t working.

I’ve also tried adding this code after the “add_action” function, but it breaks the site and gives an “access denied” error.

require_once( get_stylesheet_directory() . '/inc/catchbase-structure.php' ); 

What am I missing?

Brandon 8 months 2020-11-23T22:10:22-05:00 0 Answers 11 views 0

Leave an answer