OK. I don’t understand which file I have to do what in so I’m gonna post an example. How do I do this custom change in the way you describe, so that the child overrides the parent? And did I do the set up in my child folder correctly?
Change class of portfolio item title to H2 and H3
You need to edit line 271 in sf-portfolio.php in the swift-framework folder > sf-content-dispaly
headline
.= ‘<h4 class=”portfolio-item-title” itemprop=”name headline”>‘. $item_title .’</h4>’. “\n”;
}
To:
.= ‘<h2 class=”portfolio-item-title” itemprop=”name headline”>‘. $item_title .’</h2>’. “\n”;
}
And:
$portfolio_items_output .= ‘<h5 class=”portfolio-subtitle” itemprop=”alternativeHeadline”>’.$item_subtitle.'</h5>’. “\n”;
}
to:
$portfolio_items_output .= ‘<h3 class=”portfolio-subtitle” itemprop=”alternativeHeadline”>’.$item_subtitle.'</h3>’. “\n”;
}