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

  1. vanwero
    Posted 4 years ago #

    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!

  2. Christi
    Posted 4 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:



    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic