Would you like to provide your readers with the option to make half of a recipe?

If you're interested in using the half-recipe scaling option, you'll need to add the following snippet to your site's functions.php file:

***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).***

add_filter(
'tasty_recipes_scalable_amounts',
function() {
return array(
'0.5' => __( '1/2x', 'tasty-recipes' ),
'1' => __( '1x', 'tasty-recipes' ),
'2' => __( '2x', 'tasty-recipes' ),
);
}
);

Did this answer your question?