WordPress.org

Ready to get started?Download WordPress

Forums

Child Theme - Using file in ../framework/php/-directory (2 posts)

  1. vanwero
    Member
    Posted 2 years ago #

    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

  2. ChristiNi
    Member
    Posted 2 years ago #

    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/25/action-hooks-wordpress-child-themes/

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic