I'm using a child theme. I want to make a change to a file which currently resides in:
mybasetheme>includes>sf-content-display>sf-post-layouts.php
So I copied the exact same file structure into my child theme and copied the file over:
mychildtheme>includes>sf-content-display>sf-post-layouts.php
But it still defaults to the base theme version?
Because it's in includes I wondered if it was to do with the functions.php file calling it. So I created a new functions.php
file in my child theme as follows:
<?php
// Functions specific to child-theme
require_once( get_stylesheet_directory() . '/includes/sf-content-display/sf-post-formats.php' );
But now I see that will never work as the base theme functions.php already calls it:
>include(SF_INCLUDES_PATH . '/sf-content-display/sf-post-formats.php');
So I get this error:
Cannot redeclare sf_get_post_media() (previously declared in /Applications/MAMP/htdocs/syyco/wp-content/themes/flexform-child/includes/sf-content-display/sf-post-formats.php:15) in /Applications/MAMP/htdocs/syyco/wp-content/themes/flexform/includes/sf-content-display/sf-post-formats.php on line 36
So what do I do? I can't make the child theme include my new file, without editing the base theme, which ruins the point of having a child theme at all