New Landing How can we help? Themeforest Theme Support Joyn Joyn-Child files not overriding Joyn folder

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Joyn
  • #149632
    mhote
    Member
    Post count: 394

    Hi, to protect edits from theme updates, I have a folder structure including:

    Joyn-Child
    >Swift-Framework
    >> Core
    >>> sf-header.php

    For header text customisations. However, this isn’t overriding the Joyn parent

    Any idea why?

    #149638
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It depends on what you changed.

    For instance if you changed something inside the function sf_header_wrap(), the better thing to do it’s to copy the entire function to the childtheme functions.php

    You can do this in all the function that use before the declaration of the function the function_exists verification

    if ( ! function_exists( 'xxxxxxxx' )) {

    -Rui

    #149639
    mhote
    Member
    Post count: 394

    Thanks Rui… just changed the text/links at the login/account area to:

    // LINKS + SEARCH OUTPUT
                $aux_links_output .= '<nav class="std-menu ' . $position . '">' . "\n";
                $aux_links_output .= '<ul class="menu">' . "\n";
                if ( $show_account ) {
                    if ( is_user_logged_in() ) {
                        $aux_links_output .= '<li><a href="' . $logout_url . '">' . __( "Sign Out", "swiftframework" ) . '</a></li>' . "\n";
                        $aux_links_output .= '<li><a href="' . $my_account_link . '" class="admin-link">' . __( "My Account", "swiftframework" ) . '</a></li>' . "\n";
                    } else {
                        $aux_links_output .= '<li><a href="http://hoteliyo.com/login/">' . __( "Log In", "swiftframework" ) . '</a></li>' . "\n";
                        $aux_links_output .= '<li><a href="http://hoteliyo.com/signup/">' . __( "Signup Free", "swiftframework" ) . '</a></li>' . "\n";
                    }
                }
    #149741
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Yes, you cannot override swift framework files themselves in a child theme, instead you have to copy the whole function to the functions.php file of your child theme

    – Kyle

Viewing 4 posts - 1 through 4 (of 4 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