50 Healthy Recipes for Breakfast, Lunch & Dinner

Cauliflower Stir Fry 011

Here’s a list of easy healthy recipes for any meal of the day: breakfast, lunch or dinner! Whatever the meal, we’ve got you covered.

Healthy recipes

For over 10 years, we’ve been creating healthy recipes that are both delicious and simple to make. Need inspiration for healthy meals? You’ve come to the right place! Our collection features the best nourishing recipes for any mealtime. Whether you’re looking for quick dinners, plant-based recipes loaded with veggies, lunch ideas or breakfast recipes, we have options for every type of eater. Our recipes, from easy baked salmon to eggplant pizzas, have been consistently popular at the dinner table.

What do we mean by “healthy”? This term can be controversial, but here’s our approach: Our recipes mainly follow the Mediterranean diet, focusing on seafood, colorful vegetables and fruits, whole grains, and cooking fats like olive oil. Each recipe is chosen for its high nutrient, protein, and fiber content. Enjoy these tried-and-true healthy recipes, perfected over a decade, for a balanced and tasty diet!

More healthy recipes? Try these Mediterranean Diet Recipes, Healthy Soup Recipes, Healthy Breakfast Ideas, Healthy Appetizers, Healthy Lunch Ideas, or Healthy Desserts.

And now…our top healthy recipes for breakfast, lunch & dinner!

Cauliflower Stir Fry 011 Lentil Soup Instant Pot 014

What makes this the best lentil soup recipe? Let’s just say that everyone we’ve served it to immediately asks for the recipe…and seconds. Lentils are the definition of healthy: low in calories, high in plant-based protein and fiber.

Also try: Instant Pot Lentil Soup, Curry Lentil Soup or Hearty Lentil Stew

Chickpea Curry 007 Greek Chicken 011

Here’s a recipe that’s a total winner every night of the week: Greek chicken! Bake the chicken with tomatoes, olives, garlic, lemon, and feta cheese, and it comes out with beautiful bold flavors.

Shrimp and Broccoli 009

This ultra flavorful shrimp and broccoli comes together in minutes for a fast and easy healthy dinner recipe! It’s loaded with protein and 132% of your daily vitamin C. Serve with rice or over noodles.

Also try: Shrimp Fried Rice

Fajita Veggies 004

Here’s a Tex Mex favorite recipe that’s a great way to infuse loads of veggies: Vegetarian Faijtas! These are so satisfying, they please everyone around the table: even the meat lovers! It stars our favorite fajita veggies, blackened in the oven and finished on the stove, and pinto beans cooked in a flavorful fajita sauce. It’s so satisfying, you’ll promptly add it to your regular rotation.

Baked Salmon 056

Next up in our healthy recipes: baked salmon! This delicious salmon is an easy weeknight meal that also works to impress guests. Salmon is rich in Omega-3 fatty acids and a great source of protein (source).

Also try: Miso Salmon or Quick Broiled Salmon

Grain Bowl 064 Sauteed Shrimp 014

This sauteed shrimp is a dinnertime win! The seasoning is the perfect pairing with juicy shrimp; serve with pasta or rice for an easy dinner idea. One medium shrimp has only 7 calories, so it’s a great lean protein for a healthy dinner!

Also try: Blackened ShrimpCilantro Lime Shrimp or Garlic Butter Shrimp

Sweet Potato Curry 067

Try this Sweet Potato Curry! Tender sweet potatoes and bell peppers swim in a luscious broth of coconut milk and Thai curry paste, topped with fresh cilantro and crunchy peanuts. There’s so much flavor going on, you’ll want to take another bite before you’re finished savoring the first.

Hummus Bowl 015

Hello and welcome to the best easy healthy recipe idea: the Hummus Bowl! Layer a dollop of hummus with crunchy veggies and greens. It takes just 5 minutes to make this Mediterranean-style meal that’s bursting with creamy, tangy, crunchy, fresh, and savory flavors.

Kale Soup 006

Need a quick and crowd-pleasing healthy recipe? Try this Kale Soup with White Beans! Hearty Tuscan kale, white beans and kale float in a tangy broth flavored with oregano and fennel. It’s full of bold Mediterranean-style flavors and comes together in just 30 minutes (bonus: it’s great for leftovers!).

Healthy Mac and Cheese 015

Healthy mac and cheese? This one is all about balance: it’s got big flavor, a bit less cheese per serving than the standard recipe, and it’s loaded with broccoli for a dose of nutrients and fiber. What’s not to love? 

Mediterranean Tuna Salad 008

Here’s a healthy lunch or dinner idea to spice up your routine: Mediterranean tuna salad! This spin adds crunchy veggies and swaps out the classic mayonnaise for olive oil and vinegar. Eat with toast, crackers, spoon into avocados or make it into lettuce wraps.

Salmon and Asparagus 009

It’s simple, it’s elegant, but it tastes like something you’d order at a restaurant: Sheet Pan Salmon and Asparagus! Roasting it up on a sheet pan with lemon slices and fresh herbs adds effortless flavor that feels fresh yet refined. This sheet pan meal works is the perfect weeknight meal.

Eggplant Pizza 010

Use eggplant for the crust to make eggplant pizza! These mini pizzas are tasty and easy to make, covered in garlicky sauce and gooey cheese.

Also try: Baked Eggplant Parmesan

Tofu Curry 011

Here’s a healthy recipe that makes the most delicious dinner you’ll put on your regular rotation immediately. Try this Tofu Curry! The brilliant red broth is flavored with coconut milk and red curry paste, with the zing of lime and a hint of spicy sweetness.

Falafel Salad 009

Here’s an irresistible Mediterranean recipe: Baked Falafel Salad! Make a batch of this easy baked falafel, then layer them with crunchy veggies and top with a creamy, zingy tahini dressing. Or, use purchased frozen falafel or even repurpose take-out leftovers!

Blackened Salmon 009

Blackened salmon is the ultimate healthy recipe: fast, easy and seasoned to perfection! It’s guaranteed to become a favorite. The homemade blackened seasoning has a savory intrigue and makes a crispy black crust on the outside of the fish.

Also try: Cajun Salmon or Easy Pan Seared Salmon

Fish Tacos Recipe 003 1 Soba Noodle Bowl 002

This soba noodle bowl is a quick and easy dinner recipe, perfect for weeknights! It’s a filling vegetarian meal full of healthy veggies. Broccoli and red pepper load on the nutrients.

Vegan Burritos 003

The ultimate vegan burrito is a healthy plant based lunch or dinner idea that’s packed with flavor! It’s stuffed with Mexican rice, seasoned black beans and peppers, and avocado.

Also try: Vegan Enchiladas

Stuffed Peppers 010

Did you know stuffed peppers is a traditional Italian way to use up leftover odds and ends in your kitchen? We can’t take credit for this genius move, but here’s our spin on it. Try our favorite healthy stuffed peppers recipe! The filling is seasoned irresistibly with Italian spices, pizza sauce and melty cheese. Even better: it works for many diets.

Pan Fried Cod 003

This pan fried cod is the best white fish you’ll have! Flavored simply with spices and olive oil, it’s healthy, stunning and irresistible all at once. Cod is a great low calorie source of protein and Vitamin B12.

Also try: Perfect Baked Cod or Perfect Grilled Cod

White beans 005

Here’s a fast and easy healthy recipe starring white beans! It takes just 5 minutes in a skillet and they’re full of flavor! Use this trick for cooked or canned beans. Beans may help you live longer: they’re rich in cancer fighting antioxidants and hearty-healthy fiber.

Also try: Easy Black Beans or Easy Cannellini Beans

Mexican Sweet Potatoes 004 Black Bean Chili 003

This really is the best vegetarian chili. It’s beyond simple to make, and the flavor is outstanding. It’s got a hint of smokiness to highlight the tangy tomatoes and savory black beans. Top it with your favorite toppings, and it’s so hearty and savory, you’ll forget it’s healthy, too.

Egg Tacos 010

You won’t believe the flavor in these fast and easy egg tacos! The vegetarian “taco meat” filling works for any meal of the day. Bonus: they come together in just 5 minutes!

Also try: Loaded Quinoa Tacos or Cauliflower Tacos

Poke Bowl 002

Here’s how to make a poke bowl! This healthy recipe stars ahi tuna marinated in a flavorful poke sauce, rice, and lots of veggie topping ideas.

Also try: Vegan Poke Bowl or Ahi Poke Recipe

Broccoli Potato Soup 009 Sheet Pan Dinner 019

This healthy sheet pan dinner is filled with healthy vegetables and fresh flavor! Throw it all in the oven while you cook rice or quinoa. Dinnertime win!

Cabbage Soup 002

Looking for a flavor-packed healthy soup? Try this easy Cabbage Soup! This veggie makes a hearty, satisfying soup, packed with veggies that swim in a savory-spiced broth of fire roasted tomatoes. Ready to cozy up to a bowl?

Roasted Chickpeas 005

Need a healthy snack recipe or two? This crispy roasted chickpeas recipe is the perfect salty, crunchy healthy recipe for when you need salty snack! They’re spiced with chili powder and cumin.

5 Ingredient Perfect Hummus 003

One of the healthiest snacks you can eat? Hummus and veggies! This easy homemade hummus has the BEST zesty flavor and creamy texture: and it’s much cheaper and tastier than store bought!

Also try: Glowing Green Hummus or Creamy Beet Hummus

Avocado Sandwich 022

Here’s the most irresistible avocado sandwich: the Avocado Club! It’s filling and full of hearty flavor, the ideal easy lunch idea.

Tuna Salad Sandwich 007

Here’s the very best tuna salad sandwich you’ll have! This classic recipe is creamy, zingy, and full of flavor. (Plus, a few variations to mix it up.)

Also try: Tuna Salad with Egg or Avocado Tuna Salad

Simple Chickpea Salad 006

A 5-minute fast lunch idea! This simple chickpea salad is easy to throw together: the perfect healthy plant based desk lunch or quick fix dinner. Chickpeas are a great way to load up on fiber and plant-based protein.

Also try: Easy Chickpea Salad Sandwich

Kale Quinoa Salad 006

This colorful kale quinoa salad is full of healthy ingredients and tastes incredible! Meal prep this easy plant-based lunch idea for meals all week.

Instant Pot Lentils 006 Tofu Scramble 009

This easy tofu scramble has the same texture as scrambled eggs, but it’s 100% plant based! It’s a vegan breakfast idea you’ll want to make again and again. Tofu is a great source of protein to start the day.

Veggie Breakfast Scramble 008

Want to eat more veggies? Make this breakfast vegetables scramble! It’s got lots of colorful veggies to start the day right…with a plant based / vegan option.

Banana Baked Oatmeal 002 How to make oatmeal 005 Turmeric Poached Egg with Avocado Toast 002

Looking for a 15 minute meal? This avocado toast with egg has a few unique tweaks that make for a tasty and easy breakfast, lunch or dinner.

Egg Muffins 004

These easy mini frittatas are just what you need for a quick nutritious breakfast or lunch! Filled with healthy veggies and packed with flavor, make them ahead to grab and go.

Banana Muffins 055

These healthy banana muffins are lightly sweet and made mostly of oats and bananas! They’re blender muffins so they’re easy to make at home. The oats makes them higher in protein and fiber than the standard muffin.

Also try: Apple Zucchini Muffins or Banana Blueberry Muffins

Breakfast Cookies 005

Here’s a make ahead breakfast: these Healthy Oatmeal Breakfast Cookies! Yes, it’s magic: oats, nut butter, applesauce, and maple syrup transform into cookies that you can eat for breakfast. There’s none of those traditional cookie ingredients: no flour, no butter, no oil, and no refined sugar. How is it possible? You’ve got to taste.

Planet Oat Granola 030

Want a healthy granola recipe that’s actually good for you? Here’s the only recipe you need! The maple pecan flavor is nutrient rich and 100% delicious. This one is only 200 calories per serving with less sugar than usual.

Chocolate Snack 010

Need a chocolate fix? This chocolate snack tastes rich and chocolaty, but it’s just Greek yogurt, cocoa powder and maple syrup. And it’s made in 2 minutes!

No bake dark chocolate peanut butter cookies 006

Truly bliss in a bite, these healthy no bake cookies are made with chocolate and peanut butter. Easy and delicious, they are an all-time fan favorite!

More inspiration

Looking for other types of nutrient-dense recipes? We’ve got lots of other ideas for how to keep your meal ideas fresh. Try these options:

Got specific dietary needs? Head over to our Plant Based Diet Guide & Recipes or Whole Food Plant Based Diet Guide. Or try our Gluten Free Dinner Recipes or 20 Gluten Free Breakfast Ideas.

Print clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon Pin Recipe

Description

This easy cauliflower stir fry is an ideal healthy and easy dinner idea! It’s full of nutrients and covered in a punchy sauce. 

  • 1 medium head cauliflower (2 pounds)
  • 1 red bell pepper
  • 1 orange bell pepper
  • 1 medium white onion
  • 3 green onions
  • 3 tablespoons rice vinegar*
  • ¼ cup soy sauce (or tamari or coconut aminos)
  • 1 tablespoon light miso
  • ½ tablespoon gochujang (optional)
  • 2 tablespoons sugar (or maple syrup)
  • 2 tablespoons sesame oil (regular, not toasted)
  • 1 teaspoon cornstarch (or arrowroot powder)
  • 3 tablespoons neutral oil for stir frying, divided
  • To serve as a main dish: Add ¾ cup cashews with cauliflower**, add 1 cup shelled frozen edamame in the last 2 to 3 minutes, or add Marinated Tofu, Pan Fried Tofu, or Sauteed Shrimp and serve with rice

  1. Chop the cauliflower into small florets. Thinly slice the bell peppers. Thinly slice the white onion. Thinly slice the green onion.
  2. In a medium bowl, whisk together rice vinegar, soy sauce, miso, gochujang, sugar, sesame oil, and cornstarch (or make the Go To Stir Fry Sauce). 
  3. In large skillet, heat 2 tablespoons neutral oil over medium high heat. Add the cauliflower and a pinch of salt and cook unstirring, for 3 to 4 minutes until charred. Flip the florets and continue cooking for 2 minutes.
  4. Add the bell peppers, white onion, a pinch of salt and the remaining 1 tablespoon oil and cook 4 to 6 minutes until tender.
  5. Turn off the heat. Pour in the sauce and add the green onions. Stir until the sauce coats everything and thickens. Serve immediately. 

Notes

*Or substitute the Go To Stir Fry Sauce for the sauce ingredients (oil free).

**Adding cashews would serve about 2 to 3 as a vegetarian main; adding tofu can stretch it to 4.

  • Category: Main Dish
  • Method: Stovetop
  • Cuisine: Healthy
  • Diet: Vegan

Keywords: Healthy recipes

D){Q=Q_2;P=P_2}else{Q=Q_1;P=P_1}}if(!mixed)return[0,sgn*P,Q];var q=Math.floor(sgn*P/Q);return[q,sgn*P-q*Q,Q]}; window.tastyRecipesVulgarFractions = JSON.parse(decodeURIComponent(“%7B%22%C2%BC%22%3A%221%2F4%22%2C%22%C2%BD%22%3A%221%2F2%22%2C%22%C2%BE%22%3A%223%2F4%22%2C%22%E2%85%93%22%3A%221%2F3%22%2C%22%E2%85%94%22%3A%222%2F3%22%2C%22%E2%85%95%22%3A%221%2F5%22%2C%22%E2%85%96%22%3A%222%2F5%22%2C%22%E2%85%97%22%3A%223%2F5%22%2C%22%E2%85%98%22%3A%224%2F5%22%2C%22%E2%85%99%22%3A%221%2F6%22%2C%22%E2%85%9A%22%3A%225%2F6%22%2C%22%E2%85%9B%22%3A%221%2F8%22%2C%22%E2%85%9C%22%3A%223%2F8%22%2C%22%E2%85%9D%22%3A%225%2F8%22%2C%22%E2%85%9E%22%3A%227%2F8%22%7D”)); window.tastyRecipesFormatAmount = function(amount, el) { if ( parseFloat( amount ) === parseInt( amount ) ) { return amount; } var roundType = ‘frac’; if (typeof el.dataset.amountShouldRound !== ‘undefined’) { if (‘false’ != el.dataset.amountShouldRound) { if ( ‘number’ === el.dataset.amountShouldRound ) { roundType = ‘number’; } else if (‘frac’ === el.dataset.amountShouldRound) { roundType = ‘frac’ } else if (‘vulgar’ === el.dataset.amountShouldRound) { roundType = ‘vulgar’ } else { roundType = ‘integer’; } } } if (‘number’ === roundType) { amount = Number.parseFloat(amount).toPrecision(2); } else if (‘integer’ === roundType) { amount = Math.round(amount); } else if (‘frac’ === roundType || ‘vulgar’ === roundType) { var denom = 8; if (typeof el.dataset.unit !== ‘undefined’) { var unit = el.dataset.unit; if ([‘cups’,’cup’,’c’].includes(unit)) { denom = 4; if (0.125 === amount) { denom = 8; } if (“0.1667″ === Number.parseFloat( amount ).toPrecision(4)) { denom = 6; } } if ([‘tablespoons’,’tablespoon’,’tbsp’].includes(unit)) { denom = 2; } if ([‘teaspoons’,’teaspoon’,’tsp’].includes(unit)) { denom = 8; } } var amountArray = frac.cont( amount, denom, true ); var newAmount = ”; if ( amountArray[1] !== 0 ) { newAmount = amountArray[1] + ‘/’ + amountArray[2]; if (‘vulgar’ === roundType) { Object.keys(window.tastyRecipesVulgarFractions).forEach(function(vulgar) { if (newAmount === window.tastyRecipesVulgarFractions[vulgar]) { newAmount = vulgar; } }); } } if ( newAmount ) { newAmount = ‘ ‘ + newAmount; } if ( amountArray[0] ) { newAmount = amountArray[0] + newAmount; } amount = newAmount; } return amount; } window.tastyRecipesUpdatePrintLink = () => { const printLinks = document.querySelectorAll( ‘.tasty-recipes-print-link’ ); const printButtons = document.querySelectorAll( ‘.tasty-recipes-print-button’ ); // Use the first print button found as the canonical URL source. const printButton = document.querySelector( ‘.tasty-recipes-print-button’ ); // If no print button is available, we can’t reliably update its href. if ( ! printButton ) { return; } const printURL = new URL( printButton.href ); const searchParams = new URLSearchParams( printURL.search ); const unitButton = document.querySelector( ‘.tasty-recipes-convert-button-active’ ); const scaleButton = document.querySelector( ‘.tasty-recipes-scale-button-active’ ); let unit = ”; let scale = ”; if ( unitButton ) { unit = unitButton.dataset.unitType; searchParams.delete(‘unit’); searchParams.set( ‘unit’, unit ); } if ( scaleButton ) { scale = scaleButton.dataset.amount; searchParams.set( ‘scale’, scale ); } const paramString = searchParams.toString(); const newURL = ” === paramString ? printURL.href : printURL.origin + printURL.pathname + ‘?’ + paramString; printLinks.forEach( ( el ) => { el.href = newURL; }); printButtons.forEach( ( el ) => { el.href = newURL; }); } // When the document loads, look for unit and scale parameters and setup the recipe card // to reflect those values. document.addEventListener( ‘DOMContentLoaded’, () => { // Only reflect URL parameters on the print view. if ( ! window.location.href.includes( ‘/print/’ ) ) { return; } const searchParams = new URLSearchParams( window.location.search ); const unit = searchParams.get( ‘unit’ ); const scale = searchParams.get( ‘scale’ ); if ( unit && ( ‘metric’ === unit || ‘usc’ === unit ) ) { document.querySelector( ‘.tasty-recipes-convert-button[data-unit-type=”‘ + unit + ‘”]’ ).click(); } if ( scale && Number(scale) > 0 ) { document.querySelector( ‘.tasty-recipes-scale-button[data-amount=”‘ + Number(scale) + ‘”]’ ).click(); } }); }()); (function(){ var buttonClass = ‘tasty-recipes-scale-button’, buttonActiveClass = ‘tasty-recipes-scale-button-active’, buttons = document.querySelectorAll(‘.tasty-recipes-scale-button’); if ( ! buttons ) { return; } buttons.forEach(function(button){ button.addEventListener(‘click’, function(event){ event.preventDefault(); var recipe = event.target.closest(‘.tasty-recipes’); if ( ! recipe ) { return; } var otherButtons = recipe.querySelectorAll(‘.’ + buttonClass); otherButtons.forEach(function(bt){ bt.classList.remove(buttonActiveClass); }); button.classList.add(buttonActiveClass); var scalables = recipe.querySelectorAll(‘span[data-amount]’); var buttonAmount = parseFloat( button.dataset.amount ); scalables.forEach(function(scalable){ if (typeof scalable.dataset.amountOriginalType === ‘undefined’ && typeof scalable.dataset.nfOriginal === ‘undefined’) { if (-1 !== scalable.innerText.indexOf(‘/’)) { scalable.dataset.amountOriginalType = ‘frac’; } if (-1 !== scalable.innerText.indexOf(‘.’)) { scalable.dataset.amountOriginalType = ‘number’; } Object.keys(window.tastyRecipesVulgarFractions).forEach(function(vulgar) { if (-1 !== scalable.innerText.indexOf(vulgar)) { scalable.dataset.amountOriginalType = ‘vulgar’; } }); if (typeof scalable.dataset.amountOriginalType !== ‘undefined’) { scalable.dataset.amountShouldRound = scalable.dataset.amountOriginalType; } } var amount = parseFloat( scalable.dataset.amount ) * buttonAmount; amount = window.tastyRecipesFormatAmount(amount, scalable); if ( typeof scalable.dataset.unit !== ‘undefined’ ) { if ( ! scalable.classList.contains(‘nutrifox-quantity’) ) { if ( ! scalable.classList.contains(‘nutrifox-second-quantity’) ) { amount += ‘ ‘ + scalable.dataset.unit; } } } scalable.innerText = amount; }); var nonNumerics = recipe.querySelectorAll(‘[data-has-non-numeric-amount]’); nonNumerics.forEach(function(nonNumeric){ var indicator = nonNumeric.querySelector(‘span[data-non-numeric-label]’); if ( indicator ) { nonNumeric.removeChild(indicator); } if ( 1 !== buttonAmount ) { var indicator = document.createElement(‘span’); indicator.setAttribute(‘data-non-numeric-label’, true); var text = document.createTextNode(‘ (x’ + buttonAmount + ‘)’); indicator.appendChild(text); nonNumeric.appendChild(indicator); } }); window.tastyRecipesUpdatePrintLink(); }); }); }()); window.TastyRecipes = window.TastyRecipes || {}; window.TastyRecipes.cookMode = { wakeLockApi: false, wakeLock: false, cookModeSelector: ‘.tasty-recipes-cook-mode’, init() { if (“wakeLock” in navigator && “request” in navigator.wakeLock) { this.wakeLockApi = navigator.wakeLock; } const cookModes = document.querySelectorAll(this.cookModeSelector); if (cookModes.length > 0) { for (const cookMode of cookModes) { if (this.wakeLockApi) { cookMode.querySelector(‘input[type=”checkbox”]’).addEventListener(“change”, event => { this.checkboxChange(event.target); }, false); } else { cookMode.style.display = “none”; } } } }, checkboxChange(checkbox) { checkbox.checked ? this.lock() : this.unlock(); }, setCheckboxesState(state) { const checkboxes = document.querySelectorAll(this.cookModeSelector + ‘ input[type=”checkbox”]’); for (const checkbox of checkboxes) { checkbox.checked = state; } }, async lock() { try { this.wakeLock = await this.wakeLockApi.request(“screen”); this.wakeLock.addEventListener(“release”, event => { this.wakeLock = false; this.setCheckboxesState(false); }); this.setCheckboxesState(true); } catch (error) { this.setCheckboxesState(false); } }, unlock() { if (this.wakeLock) { this.wakeLock.release(); this.wakeLock = false; } this.setCheckboxesState(false); } }; (function(callback) { if (document.readyState !== “loading”) { callback(); } else { document.addEventListener(“DOMContentLoaded”, callback); } })(() => { window.TastyRecipes.cookMode.init(); }); window.TastyRecipes = window.TastyRecipes || {}; window.TastyRecipes.ratings = { init( min_rating ) { this.min_rating = min_rating; this.recipeRatingReflectInRespondSection(); this.addBodyClassBasedOnSelectedRating(); this.backwardCompRespondRatingPosition(); }, recipeRatingReflectInRespondSection() { const ratings = document.querySelectorAll(‘.tasty-recipes-no-ratings-buttons [data-rating]’); if (ratings.length { this.fireRatingInRespond( event.target.dataset.rating ); } ); } }, fireRatingInRespond( rating ) { const ratingInput = document.querySelector(‘.tasty-recipes-rating[value=”‘ + rating + ‘”]’); if ( ! ratingInput ) { return; } ratingInput.click(); }, addBodyClassBasedOnSelectedRating() { const ratingInputs = document.querySelectorAll(‘input.tasty-recipes-rating’); if ( ratingInputs.length { let selectedRating = event.target.getAttribute( ‘value’ ); this.handleBodyClassByRating( selectedRating ); this._toggle_comment_textarea_required( selectedRating ); } ); } }, handleBodyClassByRating( rating ) { if ( rating = comment_textarea.length ) { return; } if ( rating < this.min_rating ) { comment_textarea.setAttribute( 'required', '' ); return; } comment_textarea.removeAttribute('required'); }, backwardCompRespondRatingPosition() { const ratings_buttons = document.querySelector( '#respond .tasty-recipes-ratings-buttons' ); if ( ratings_buttons.length { if ( rating_span === event.target ) { return; } rating_span.previousElementSibling.click(); } ); } } }; (function(callback) { if (document.readyState !== "loading") { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } })(() => { window.TastyRecipes.ratings.init( window.tasty_recipes_min_rating ); }); ]]>

Source

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *