If you're interested in changing the Feature Links header from “Equipment” to “Recommendations,” you can use this filter to add it in!
***Before doing this, make sure that you have access to your site's files via FTP (the editor in WordPress is not sufficient in case problems arise) and that you are comfortable with editing your functions.php file. Any minor error in the functions.php file can result in the “white screen of death,” which is easily fixed via FTP but is difficult to fix otherwise (and a nuisance as your site will be unavailable until fixed).***
Just add in the following snippet to your theme's functions.php file:
/**
* Replaces 'Equipment' heading with 'Recommendations' in the Tasty Recipes shortcode.
*
* @param string $output Existing block output.
* @param string $tag Name of the shortcode being rendered
* @return string
*/
add_filter(
'do_shortcode_tag',
function( $output, $tag ) {
if ( 'tasty-recipe' !== $tag ) {
return $output;
}
return str_replace( '<h3>Equipment</h3>', '<h3>Recommendations</h3>', $output );
},
10,
2
);
/**
* Replaces 'Equipment' heading with 'Recommendations' in the Tasty Recipes block.
*
* @param string $output Existing block output.
* @param array $block Block being rendered.
* @return string
*/
add_filter(
'render_block',
function( $output, $block ) {
if ( 'wp-tasty/tasty-recipe' !== $block['blockName'] ) {
return $output;
}
return str_replace( '<h3>Equipment</h3>', '<h3>Recommendations</h3>', $output );
},
10,
2
);