New Landing How can we help? Themeforest Theme Support Dante sf-functions.php in child theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #325403
    WEswift
    Member
    Post count: 234

    I need to overwrite the sf-functions.php within the child theme. However, when I create the directory and file it has no effect.

    I have a conflict with a plugin where the sf_content_filter() is declared twice — so I want to comment it out as it is not needed for me in the theme files.

    Thoughts?

    #325459
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You would not overwrite the file. Only the PHP function within the file that you need to change.

    Locate the function you want to modify, copy that from sf-functions.php to the child theme functions.php file.

    What plugin is declaring this sf_content_filter()? This should not happen if the code is correctly pluggable, ie they check for the function before declaring it using:

    if ( ! function_exists( 'sf_content_filter' ) ) {
        function sf_content_filter( $args ){ 
           /* Your code */
        }
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.