New Landing How can we help? Themeforest Theme Support Neighborhood possible to change SPB element via child theme?

Viewing 4 posts - 1 through 4 (of 4 total)
  • #305925
    jefflogo
    Member
    Post count: 32

    I have changed line 254 of sf-portfolio.php like this – adding “Shop All”
    $portfolio_items_output .= ‘<h4 itemprop=”name headline”>Shop all ‘.$item_title.'</h4>’. “\n”;

    I tried creating the following folders (neighborhood-child/includes/swift-framework/sf-content-display/ & put the edited sf-portfolio.php file in my child theme but that doesn’t work. Only editing original does. Any way to set this in child theme so it’s not overwritten upon theme updates?

    #305998
    David Martin – Support
    Moderator
    Post count: 20834

    As that is a PHP function, sf_portfolio_items() you simply copy the entire function into the child theme functions.php this will then overwrite the parent theme function sf_portfolio_items(). You then edit the function within the child theme.

    #306306
    jefflogo
    Member
    Post count: 32

    thanks. that worked perfectly, of course.

    #306392
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks David.

    -Rui

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

You must be logged in to reply to this topic.