Title: Child Theme &#8211; Using file in ../framework/php/-directory
Last modified: August 20, 2016

---

# Child Theme – Using file in ../framework/php/-directory

 *  [vanwero](https://wordpress.org/support/users/vanwero/)
 * (@vanwero)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/child-theme-using-class-framework-widgetsphp/)
 * Hi,
    I’m working with a child theme to avoid changes to be overwritten when the
   theme is updated.
 * It works fine, but now I want to use the “Class-framework-widgets.php” using 
   the child-theme.
 * On the parent Theme: this file is located in the “…/wp-content/themes/broadscope/
   framework/php/” directory.
    => if i do the change directly in that file as a 
   test, it works fine.
 * On my child Theme i created excactely the same directory-structure: “…/wp-content/
   themes/broadscope-child/framework/php/”
 * I copied the “Class-framework-widgets.php” into that folder and made my changes.
   
   But this doesn’t have any results!
 * Any idea why this fails? (it works fine for php-files in the “includes”-folder,
   etc…)
 * Thanks in advance!
    Vanwero

Viewing 1 replies (of 1 total)

 *  [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * (@christini)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/child-theme-using-class-framework-widgetsphp/#post-2425138)
 * Hi vanwero,
 * While I’m happy to give some basic suggestions, since that is a premium theme,
   your best source of information would be the theme developer you purchased your
   theme from.
 * I’m not sure what change you want to make to your Class-framework-widgets.php
   file but perhaps you could use either a filter hook or action hook in your child
   theme:
 * [http://themeshaper.com/2009/05/03/filters-wordpress-child-themes/](http://themeshaper.com/2009/05/03/filters-wordpress-child-themes/)
 * [http://themeshaper.com/2009/05/25/action-hooks-wordpress-child-themes/](http://themeshaper.com/2009/05/25/action-hooks-wordpress-child-themes/)
 * Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Child Theme – Using file in ../framework/php/-directory’ is closed to
new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/child-theme-using-class-framework-widgetsphp/#post-2425138)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
