New Landing How can we help? Themeforest Theme Support Dante Over-ride theme files with Child theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #223731
    deepak.mote
    Member

    hi, im trying to override “sf-header.php” & “sf-menus.php” with the child theme but it doesn’t seem to be working.
    i’ve created a “includes” folder in the child theme and placed the edited files there – it doesn’t take effect.
    the child theme is linked fine, i’ve crossed checked that.

    what am i doing wrong?

    Attachments:
    You must be logged in to view attached files.
    #223763
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    It doesn’t work like that with framework files, you need to override the function itself in the child theme’s functions.php file. so whatever function you edit, make sure it starts with

    if ( ! function_exists( 'function_name' )) {

    otherwise it can’t be overwritten. If it does start with that, copy that whole function to your child theme’s functions.php file

    – Kyle

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register