I'm using the catch-base theme as a parent theme and have the following code in functions.php
<?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, https://catchthemes.com/blog/create-child-theme-wordpress/ 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?