1. Home
  2. Knowledge Base
  3. Tasty Recipes
  4. Customizing Tasty Recipes
  5. Filter: Prevent Tasty Links Inside of Tasty Recipes

Filter: Prevent Tasty Links Inside of Tasty Recipes

Prefer to keep your recipe cards clear of automatic links from your Tasty Links keywords? No problem!

If you're interested in using the Tasty Links exclusion option, you (or your site manager/developer) will need to add the following snippet to your site's functions.php file:

/** * Prevent Tasty Links from appearing inside Tasty Recipes recipe cards. */ 
	'init', function() {
    	// Remove Tasty Links from Tasty Recipes description, notes, ingredients, and instructions.
    	remove_filter( 'tasty_recipes_the_content', array(
				'filter_tasty_recipes_content' )

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

Was this article helpful?

Related Articles

Need Support?

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