Filter: Option to scale down a recipe to 1/2

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

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

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support