Can't get child theme to overwrite a parent theme's template file (3 posts)

  1. rosaleen.ortiz
    Posted 5 years ago #

    Ive been customizing a FlexiThemes theme with a child theme. I've been able to make modifications in many of the root folder files (style.css, header.php, functions.php, etc.). But I now need to make a modification to one of FlexiTheme's own widgets (I need it to return a custom taxonomy for each post on the sidebar widget).

    I know the code that I need to use (and have in fact got it to work when I make the change on the parent theme's file), but when I try to add the modified template file onto my child theme, nothing happens.

    I'm assuming that the problem lies on how the widget file is called by the parent theme. Here's the location of the file:


    The parent's functions.php file has this bit on it:

    require_once TEMPLATEPATH . '/flexipanel/FlexiTheme.php';
    $theme = new FlexiTheme();
    $theme->theme_name = 'TheNews';

    Is there a way to overwrite that on my child theme? Because I'm assuming that's the problem.

    The /flexipanel/FlexiTheme.php file has a bunch of TEMPLATEPATH. lines too.

    I've already tried to copy the entire 'flexipanel' folder (with the modified posts.php file) onto the root of my child theme and it didn't work.

    Any ideas what I should try next?


  2. esmi
    Forum Moderator
    Posted 5 years ago #

  3. rosaleen.ortiz
    Posted 5 years ago #

    I already tried their support page two days ago and haven't gotten any answer. So I thought I would see if the issue is more of how child themes work and not so much of this specific theme. This is my first time dabbling into child themes and would appreciate any help here. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic