This home made pizza dough recipe is comfortable, chewy, and stuffed with taste! Learn to get the proper pizza dough each time utilizing easy elements.

This pizza dough recipe has grow to be my most-loved recipe. Folks cease me on the retailer to say they’ve made it three weeks in a row, and my inbox has notes from readers who say it’s modified their pizza nights without end. The key? Simply 5 primary elements and slightly persistence!
I’ve spent the final decade honing this recipe with my husband Alex: interviewing pizzeria cooks, touring to Italy to style genuine Neapolitan pizza, and making numerous pizzas in our kitchen. This grasp dough recipe makes the proper chewy texture, crispy golden brown crust, and complicated taste. You don’t even want particular tools: simply your naked fingers and a ardour for pizza!
Video: the right way to make pizza dough
Do-it-yourself pizza dough might be difficult the primary few instances, I created a tutorial video to indicate you the right way to work with the dough!
Why You’ll Love This Recipe
I’ve examined each simple pizza dough recipe variation, and this one constantly delivers high-quality outcomes with elements it’s possible you’ll have already got in your pantry. Right here’s why you’ll like it:
- The flavour is unimaginable. This recipe develops advanced nutty notes, particularly in the event you let it cold-ferment within the fridge for a few days. Even with out that, the flavour places premade dough to disgrace.
- The feel hits each mark. It’s bought a satisfying chew if you chunk into the crust, the sunshine and ethereal inside, and crispy edges.
- It’s dependable. After years of testing totally different flour ratios and kneading instances, I’ve dialed in precise measurements (use a kitchen scale for precision) and strategies that work each time.
- It’s versatile. This recipe makes sufficient for 3 medium pizzas, nice for a household pizza evening. You can too freeze parts for fast weeknight meals later.
5-Star Reader Evaluate
“Phenomenal! I’m making my second batch of dough now to freeze for fast meals for my husband and I. That is by far the best possible pizza dough we’ve made! I didn’t have nice outcomes from different recipes, and I can’t stand the premade dough. We used the 00 flour and weighed the elements. No extra frozen pizza for us!” -Valerie
“I’ve been making pizza dough for some time now. However this was the perfect pizza dough ever. Once more thanks a lot for this and all of your recipes.” -Marlaine
Which Flour Works Finest?
The absolute best home made pizza dough recipe is made with nice flour. Our best choice is the flour that skilled pizzerias use, known as Tipo 00. Right here’s what to find out about forms of flours for pizza dough:
- Tipo 00 flour, a finely floor flour utilized in Italian delicacies, is your best option for pizza dough: it makes a light-weight and ethereal crust with a crispy exterior. The excessive gluten content material lets the dough stretch simply with out tearing, making a fluffy, chewy texture. Tipo 00 is turning into extra broadly accessible at American grocery shops, or you’ll be able to order it on-line.
- Bread flour, a sort of flour that’s excessive in gluten and protein, will also be used for pizza dough. The excessive protein content material helps to create a pleasant chewiness within the dough. It’s not as gentle and ethereal as Tipo 00, nevertheless it’s most well-liked over all-purpose flour.
- All-purpose flour additionally works for this home made pizza dough recipe. It’s broadly accessible and cheap, nevertheless it doesn’t have as excessive of gluten content material as Tipo 00 or bread flour flour. This makes pizza crust barely extra dense and crumbly. If it’s all you might have, it nonetheless makes for a superb home made pizza dough!
Tools You’ll Want
One in all my favourite issues about this home made pizza dough recipe is how little tools you really want. Right here’s what I exploit:
- Massive bowl or mixing bowl: Any giant bowl works for mixing and proofing.
- Kitchen scale: Not required, however measuring in grams ensures constant outcomes each time (I exploit this one).
- Stand mixer with dough hook (optionally available): You may knead by hand, however a KitchenAid mixer makes the method approach simpler and hands-off. Both technique takes 8 minutes.
- Clear kitchen towel: For masking the dough ball throughout rises.
- Bench scraper (optionally available): Makes dividing dough simpler, however a knife works superb.
- Pizza stone: That is my #1 software advice for crispy crusts. I preheat mine at 500°F for 45 minutes earlier than baking. See my information to the perfect pizza stone for particular suggestions.
- Pizza peel: For transferring pizzas to your sizzling stone. I discover that is very useful, however a rimless baking sheet can work in a pinch. Right here’s the pizza peel I exploit.
Don’t Have a Pizza Stone?
Attempt making my Sheet Pan Pizza or Pan Pizza as a substitute: each strategies are extremely forgiving and don’t require specialty tools.

How one can Make This Pizza Dough Recipe
Making home made pizza dough is a reasonably easy course of. Listed here are some issues to find out about the right way to make pizza dough, or go proper to the recipe to get began cooking.
Combine the Dough
Begin by combining the Tipo 00 flour with the yeast, and salt, then including the nice and cozy water and olive oil. See the full recipe for portions. (Heat water prompts the yeast, however water that’s too sizzling will kill it.)
At this level, use a picket spoon to stir every thing collectively. The combination ought to look shaggy and tough: preserve mixing till no dry flour stays on the backside of the bowl.
Knead Till Easy and Elastic
I choose kneading with a stand mixer: merely connect the dough hook and knead on medium-low velocity for 8 minutes. Look ahead to the dough to drag away from the perimeters of the bowl and grow to be clean.
To knead by hand, place it on a floured floor and push the dough away with the heel of your hand, fold it again over itself, give it a flip, and repeat. The dough feels very sticky at first. At 5 minutes it turns into smoother, and by 8 minutes, it’s comfortable and stretchy. It’s prepared if you poke it and it springs again gently.
Let the Dough Rise
Divide the dough into 3 equal items with a bench scraper or a knife. Use evenly floured fingers to form every bit right into a ball (known as a boule), folding the perimeters of every piece beneath itself to make a clean domed prime.
Place every ball on a floured floor, brush the tops with a little bit of olive oil, and canopy with a humid towel. The dough wants 45 minutes to 1 hour at room temperature to rise till doubled in measurement. (That is the proper time to prep your home made pizza sauce.)
Non-compulsory: Chilly Fermentation for Subsequent-Degree Taste
I’ve interviewed some prime rated pizzeria cooks in America they usually all agree. For the greatest pizza dough, make it upfront and refrigerate it for two to three days earlier than baking.
This naturally ferments the dough, infusing a nutty, advanced taste. In fact, pondering forward by 2 to three days is just not all the time potential! You may skip this step and the dough nonetheless tastes unimaginable. (Promise.)

Suggestions for Stretching Your Dough
Do you must throw home made pizza dough into the air like in your favourite pizzeria? Whereas it seems fancy, this sort of stretching is just not required for home made dough. It’s best to observe this How one can Stretch Pizza Dough video earlier than you begin. Listed here are just a few ideas for stretching pizza dough:
- Prep the dough: Place the dough on a evenly floured floor. Mud the highest of the dough with flour.
- Pat right into a circle: Pat the dough right into a circle, then drape it in your knuckles to stretch it. If the dough resists stretching, set it down and let it relaxation for 1 minute. When you decide it up once more, the gluten may have relaxed and it is going to be potential to stretch.
- Drape the dough over your knuckles: After you have about an 8-inch circle, decide up the dough and gently drape it over the knuckles on each of your fingers. Slowly rotate it round, permitting gravity to stretch it right into a circle about 11 inches in diameter. If it resists stretching, put it down and permit it to relaxation for a couple of minutes, at which level it can stretch extra simply.
Pizza Dough Variations and Taste Concepts
This home made pizza dough recipe produces a deliciously fluffy pizza crust good for the standard, artisan-style pizza. Listed here are just a few variations on this pizza crust recipe:
- Garlic Herb Crust: Add 1 teaspoon garlic powder and 1 tablespoon Italian seasoning to the dry elements.
- Complete Wheat: Substitute 25% of the flour with complete wheat flour.
- The whole lot Seasoning: Brush the crust edges with olive oil and sprinkle with every thing bagel seasoning earlier than baking.
- Skinny Crust Pizza Dough: You may truly roll this one out as a substitute of stretching
- Pan Pizza: A thick crust made in a forged iron pan
- Sheet Pan Pizza or Focaccia Pizza: Easy to make on a sheet pan
- Pizza Oven Dough: This recipe is optimized for an outside pizza oven
- Gluten Free Pizza Dough: Excellent for these with particular diets.
Storing and Freezing Suggestions
Fridge: This pizza dough retains properly within the fridge for as much as 3 days. I place every dough ball in its personal sealed container brushed with olive oil to stop sticking.
The dough continues to develop taste within the fridge, so day 2 or 3 dough truly tastes higher than day 1! Simply keep in mind to convey it to room temperature (30-45 minutes) earlier than stretching.
Freezer: After the preliminary rise wrap every ball in plastic wrap then in a freezer bag or container. To thaw it, place frozen dough within the fridge to thaw in a single day, then let it come to room temperature earlier than stretching. For extra, see How one can Freeze Pizza Dough.
Dietary notes
This pizza dough recipe is vegetarian, vegan, plant-based and dairy-free.
Continuously requested questions
The dough needs to be barely sticky however nonetheless workable. If it’s too sticky, strive:
– Including simply sufficient flour to make it workable (don’t overdo it)
– Utilizing barely much less water subsequent time (about 30g much less)
– Do not forget that a considerably sticky dough typically ends in a lighter, airier crust
Sure! All the time do the preliminary 45-60 minute rise at room temperature first, then divide into balls and refrigerate. This units up the right fermentation course of.
Whereas a pizza stone creates the perfect crust, you’ll be able to nonetheless make nice pizza with out one. Use a preheated baking sheet or an inverted forged iron pan. Bake at 450-500°F – the crust gained’t be fairly as crispy however will nonetheless be scrumptious.
Sure! A 50/50 mix of all-purpose flour and bread flour provides you a pleasant center floor if desired. However I’d suggest utilizing all bread flour in case you have it.
Completely. After kneading, form the dough into balls, place them in oiled containers, full the primary rise, after which refrigerate for 12-24 hours. This develops unimaginable taste. Simply convey the dough to room temperature earlier than stretching (about 45 minutes on the counter).
They’re comparable however not similar. Each must preheat in a extremely popular oven to create that crispy backside crust.
Pizza stone: Produced from ceramic or cordierite, stones are extra inexpensive and work properly. They’ll crack if uncovered to sudden temperature modifications.
Pizza metal: Produced from thick metal, these conduct warmth even higher than stones and are almost indestructible. They’re costlier however value it in the event you make pizza steadily.
Do-it-yourself Pizza Dough (Fan Favourite!)
This home made pizza dough recipe actually is the perfect! Listed here are our methods for the right way to make pizza dough with the proper fluffy, chewy texture and strong taste—each time. That is considered one of our hottest recipes with a great deal of constructive opinions!
For the absolute best pizza dough, we suggest this pizza stone. Right here’s why we like it.
- Prep Time: 1 hour
- Cook dinner Time: 0 minutes
- Whole Time: 1 hour
- Yield: 3 medium pizzas (about 11 inches in diameter)
- Class: Important Recipes
- Methodology: Baked
- Delicacies: Italian
Elements
- 500 grams* Tipo 00 or all-purpose flour (3 ⅓ cups)
- 8 grams immediate or energetic dry yeast (2 teaspoons)
- 7 grams kosher salt (1 teaspoon)
- 338 grams heat water (1 ¼ cups + 3 tablespoons)
- 13 grams olive oil (1 tablespoon)
Directions
- Mix the flour, salt, and yeast in a bowl or the bowl of your stand mixer. Stir to mix. Add the water and olive oil and stir till a raggy dough types. Flip the dough out onto a floured floor.
- Knead the dough by pushing with the bottom of your palm, then reforming it right into a ball. Proceed kneading for 8 minutes till the dough feels pillowy and has a clean, stretchy exterior. If the dough may be very sticky, add a small quantity of flour whereas kneading. Alternatively: connect the dough hook to a stand mixer and begin the mixer on medium-low velocity, then enable the mixer to knead for 8 minutes.
- After the kneading is completed, divide the dough into 3 equal items. Utilizing floured fingers, gently form every half right into a boule (ball form) by folding the dough beneath itself. Set every boule on a floured floor and dab the dough with a little bit of olive oil to maintain it moist. Cowl all boules with a humid towel and permit them to rise at room temperature till doubled in measurement, about 45 minutes to 1 hour.
- The dough can be utilized instantly: go to Step 6. For next-level taste, you’ll be able to switch the dough to separate sealed containers, giant sufficient for the dough to double in measurement once more, and retailer within the fridge for two to three days. (We don’t all the time do that, however we strive when potential as a result of it makes for a noticeably nutty, distinctive taste that actually is the perfect home made pizza dough you’ve ever had.) You can too freeze pizza dough you don’t plan to make use of that day.
- **In the event you’re utilizing the dough after refrigerating: The day of serving, take away the dough from the refrigerated containers, place it on a evenly floured floor coated with a towel, and permit it to return to room temperature earlier than stretching, 30 to 45 minutes. (This isn’t required in the event you’re utilizing the dough instantly after proofing.)
- Place a pizza stone within the oven and preheat to 500°F. OR preheat your pizza oven (right here’s the pizza oven we use).
- To stretch the dough, place it on a evenly floured floor and gently press it right into a circle, flipping a number of instances and including a pinch of flour whether it is too sticky. After you have about an 8-inch circle, decide up the dough and gently drape it over the knuckles on each of your fingers. Slowly rotate it round, permitting gravity to stretch it right into a circle about 11 inches in diameter. Don’t overwork or fold the dough. If the dough begins to withstand stretching, put it down and permit it to relaxation for a couple of minutes, at which level it can stretch extra simply. Then gently place the dough onto the pizza peel.
- Add your pizza toppings (like a ⅓ to ½ cup of this Do-it-yourself Pizza Sauce and cheese). Use the pizza peel to fastidiously switch the pizza onto the preheated pizza stone. Bake the pizza till the cheese and crust are properly browned, about 5 to 7 minutes within the oven (or 1 minute in a pizza oven).
- Permit the pizza to chill for a minute or two, then add recent basil (if utilizing), slice into items, and serve instantly.
Notes
- Weigh your elements: Utilizing a meals scale makes positive you might have constant outcomes each time! I exploit this one.
- Flour choices: Tipo 00 provides the perfect texture, however bread flour and all-purpose flour each work. See “Which Flour Works Finest?” part for extra particulars.
- Hand kneading vs. stand mixer: Each strategies work completely, although stand mixer is far simpler.
- If the dough feels sticky: Pizza dough needs to be barely cheesy. If it’s too moist to deal with, mud with small quantities of flour whereas kneading. Tipo 00 and bread flour take in liquid otherwise than all-purpose.
- Make forward: This dough truly improves with time. Refrigerating for 24-72 hours develops deeper, extra advanced taste.
- Freezing: Wrap formed dough balls tightly in plastic wrap and freeze for as much as 3 months. Thaw in a single day in fridge earlier than utilizing. See How one can Freeze Pizza Dough.
- Baking ideas: Preheat your pizza stone or baking sheet within the oven at 500°F for not less than 45 minutes. This ensures a crispy backside crust.
(perform(){
window.addEventListener( ‘message’, perform( occasion ){
if ( ( ‘https://nutrifox.com’ !== occasion.origin && ‘https://nutrifox.check’ !== occasion.origin ) ||
typeof occasion.knowledge !== ‘string’ ) {
return;
}
var payload = JSON.parse( occasion.knowledge );
change ( payload.occasion ) {
case ‘setHeight’:
var iframe = doc.getElementById( ‘nutrifox-label-‘ + payload.recipeId );
iframe.model.peak = payload.peak + ‘px’;
break;
}
} );
}());
window.trCommon={“minRating”:6,”ajaxurl”:”https://www.acouplecooks.com/wp-admin/admin-ajax.php”,”ratingNonce”:””,”postId”:35063};
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.smoothScroll = {
init() {
doc.addEventListener( ‘click on’, ( e ) => {
let anchor = e.goal;
if ( anchor.tagName !== ‘A’ ) {
anchor = anchor.closest( ‘a.tasty-recipes-scrollto’ );
}
if ( ! anchor || ! anchor.classList.comprises( ‘tasty-recipes-scrollto’ ) ) {
return;
}
const elementHref = anchor.getAttribute( ‘href’ );
if ( ! elementHref ) {
return;
}
e.preventDefault();
this.goToSelector( elementHref );
});
},
goToSelector( selector ) {
const component = doc.querySelector( selector );
if ( ! component ) {
return;
}
component.scrollIntoView( { habits: ‘clean’ } );
}
};
doc.addEventListener(
‘DOMContentLoaded’,
() => window.TastyRecipes.smoothScroll.init()
);
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 = doc.querySelectorAll(this.cookModeSelector);
if (cookModes.size > 0) {
for (const cookMode of cookModes) {
if (this.wakeLockApi) {
cookMode.querySelector(‘enter[type=”checkbox”]’).addEventListener(“change”, occasion => {
this.checkboxChange(occasion.goal);
}, false);
} else {
cookMode.model.show = “none”;
}
}
}
},
checkboxChange(checkbox) {
if (checkbox.checked) {
this.lock();
} else {
this.unlock();
}
},
setCheckboxesState(state) {
const checkboxes = doc.querySelectorAll(this.cookModeSelector + ‘ enter[type=”checkbox”]’);
for (const checkbox of checkboxes) {
checkbox.checked = state;
}
},
async lock() {
strive {
this.wakeLock = await this.wakeLockApi.request(“display screen”);
this.wakeLock.addEventListener(“launch”, () => {
this.wakeLock = false;
this.setCheckboxesState(false);
});
this.setCheckboxesState(true);
} catch (error) {
this.setCheckboxesState(false);
}
},
unlock() {
if (this.wakeLock) {
this.wakeLock.launch();
this.wakeLock = false;
}
this.setCheckboxesState(false);
}
};
(perform(callback) {
if (doc.readyState !== “loading”) {
callback();
} else {
doc.addEventListener(“DOMContentLoaded”, callback);
}
})(() => {
window.TastyRecipes.cookMode.init();
});
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.staticTooltip = {
component: null,
tooltipElement: null,
deleting: false,
init( component ) {
if ( this.deleting ) {
return;
}
this.component = component;
this.buildElements();
},
destroy() {
if ( ! this.tooltipElement || this.deleting ) {
return;
}
this.deleting = true;
this.tooltipElement.classList.take away( ‘opened’ );
setTimeout( () => {
this.tooltipElement.take away();
this.deleting = false;
}, 500 );
},
buildElements() {
const tooltipElement = doc.createElement( ‘div’ );
tooltipElement.classList.add( ‘tasty-recipes-static-tooltip’);
tooltipElement.setAttribute( ‘id’, ‘tasty-recipes-tooltip’ );
const currentTooltipElement = doc.getElementById( ‘tasty-recipes-tooltip’ );
if ( currentTooltipElement ) {
doc.physique.replaceChild( tooltipElement, currentTooltipElement );
} else {
doc.physique.appendChild( tooltipElement );
}
this.tooltipElement = doc.getElementById( ‘tasty-recipes-tooltip’ );
},
present() {
if ( ! this.tooltipElement ) {
return;
}
const tooltipTop = this.component.getBoundingClientRect().prime
+ window.scrollY
– 10 // 10px offset.
– this.tooltipElement.getBoundingClientRect().peak;
const tooltipLeft = this.component.getBoundingClientRect().left
– ( this.tooltipElement.getBoundingClientRect().width / 2 )
+ ( this.component.getBoundingClientRect().width / 2 ) – 1;
const posLeft = Math.max( 10, tooltipLeft );
this.maybeRemoveTail( posLeft !== tooltipLeft );
this.tooltipElement.setAttribute( ‘model’, ‘prime:’ + tooltipTop + ‘px;left:’ + posLeft + ‘px;’ );
this.tooltipElement.classList.add( ‘opened’ );
},
maybeRemoveTail( removeTail ) {
if ( removeTail ) {
this.tooltipElement.classList.add( ‘tr-hide-tail’ );
} else {
this.tooltipElement.classList.take away( ‘tr-hide-tail’ );
}
},
changeMessage( message ) {
if ( ! this.tooltipElement ) {
return;
}
this.tooltipElement.innerHTML = message;
}
};
window.TastyRecipes.ajax = {
sendPostRequest( url, knowledge, success, failure ) {
const xhr = new XMLHttpRequest();
xhr.open( ‘POST’, url, true );
xhr.ship( this.preparePostData( knowledge ) );
xhr.onreadystatechange = () => {
if ( 4 !== xhr.readyState ) {
return;
}
if ( xhr.standing === 200 ) {
success( JSON.parse( xhr.responseText ) );
return;
}
failure( xhr );
};
xhr.onerror = () => {
failure( xhr );
};
},
preparePostData( knowledge ) {
const formData = new FormData();
for ( const key in knowledge ) {
formData.append( key, knowledge[key] );
}
return formData;
},
};
window.TastyRecipes.rankings = {
defaultRating: 0,
currentRatingPercentage: 100,
savingRating: false,
init( minRating ) {
this.minRating = minRating;
this.formWatchRating();
this.closeTooltipWhenClickOutside();
this.addBodyClassBasedOnSelectedRating();
this.backwardCompFormRatingPosition();
},
formWatchRating() {
const rankings = doc.querySelectorAll(‘.tasty-recipes-no-ratings-buttons [data-rating]’);
if ( rankings.size {
occasion.preventDefault();
this.defaultRating = occasion.goal.closest( ‘.checked’ ).dataset.ranking;
this.setCheckedStar( occasion.goal );
this.maybeSendRating( this.defaultRating, occasion.goal );
this.setRatingInForm( this.defaultRating );
} );
}
},
closeTooltipWhenClickOutside() {
window.addEventListener( ‘click on’, e => {
// Bailout (do not take away the tooltip) when the clicked component is a ranking star, or it is the tooltip itself.
if ( e.goal.closest( ‘.tasty-recipes-rating’ ) || e.goal.classList.comprises( ‘tasty-recipes-static-tooltip’ ) ) {
return;
}
window.TastyRecipes.staticTooltip.destroy();
} );
},
setRatingInForm( ranking ) {
const ratingInput = doc.querySelector( ‘#reply .tasty-recipes-rating[value=”‘ + rating + ‘”]’ );
if ( ! ratingInput ) {
return;
}
ratingInput.click on();
},
addBodyClassBasedOnSelectedRating() {
const ratingInputs = doc.querySelectorAll( ‘enter.tasty-recipes-rating’ );
if ( ! ratingInputs ) {
return;
}
for ( const ratingInput of ratingInputs ) {
ratingInput.addEventListener( ‘click on’, currentEvent => {
const selectedRating = currentEvent.goal.getAttribute( ‘worth’ );
this.handleBodyClassByRating( selectedRating );
this.toggleCommentTextareaRequired( selectedRating );
} );
}
},
handleBodyClassByRating( ranking ) {
if ( ranking < this.minRating ) {
doc.physique.classList.take away( 'tasty-recipes-selected-minimum-rating' );
return;
}
doc.physique.classList.add( 'tasty-recipes-selected-minimum-rating' );
},
toggleCommentTextareaRequired( ranking ) {
const commentTextarea = doc.getElementById( 'remark' );
if ( ! commentTextarea ) {
return;
}
if ( ranking {
window.TastyRecipes.staticTooltip.changeMessage( response.knowledge.message );
window.TastyRecipes.staticTooltip.present();
this.updateAverageText( response.knowledge, recipeCardElement );
this.maybeFillCommentForm( response.knowledge );
// Cover the tooltip after 5 seconds.
setTimeout( () => {
this.maybeResetTooltip( recipeCardElement, response.knowledge, ranking );
}, 5000 );
},
() => {
this.resetTooltip( recipeCardElement );
}
);
},
updateAverageText( knowledge, recipeCardElement ) {
if ( ! knowledge.common ) {
return;
}
this.setRatingPercent( knowledge );
if ( ! knowledge.rely ) {
return;
}
const quickLink = doc.querySelector( ‘.tasty-recipes-rating-link’ );
if ( quickLink ) {
this.setTextInContainer( quickLink, knowledge );
this.setPartialStar( quickLink );
}
const cardStars = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
cardStars.dataset.trDefaultRating = knowledge.common;
this.setTextInContainer( recipeCardElement.querySelector( ‘.tasty-recipes-rating’ ), knowledge );
},
setTextInContainer( container, knowledge ) {
if ( ! container ) {
return;
}
if ( knowledge.label ) {
const ratingLabelElement = container.querySelector( ‘.rating-label’ );
if ( ratingLabelElement ) {
ratingLabelElement.innerHTML = knowledge.label;
}
return;
}
const averageElement = container.querySelector( ‘.common’ );
if ( averageElement ) {
averageElement.textContent = knowledge.common;
}
const countElement = container.querySelector( ‘.rely’ );
if ( countElement ) {
countElement.textContent = knowledge.rely;
}
},
setPartialStar( container ) {
const highestStar = container.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( highestStar ) {
highestStar.dataset.trClip = this.currentRatingPercentage;
}
},
setRatingPercent( knowledge ) {
this.defaultRating = knowledge.common.toFixed( 1 );
const elements = knowledge.common.toFixed( 2 ).toString().cut up( ‘.’ );
this.currentRatingPercentage = elements[1] ? elements[1] : 100;
if ( this.currentRatingPercentage === ’00’ ) {
this.currentRatingPercentage = 100;
}
},
setCheckedStar( goal ) {
const cardRatingContainer = goal.closest( ‘.tasty-recipes-ratings-buttons’ );
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( selectedRatingElement ) {
delete selectedRatingElement.dataset.trChecked;
}
const thisStar = goal.closest( ‘.tasty-recipes-rating’ );
thisStar.dataset.trChecked = 1;
thisStar.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = 100;
},
maybeFillCommentForm( knowledge ) {
if ( ! knowledge.remark || ! knowledge.remark.content material ) {
return;
}
const commentForm = doc.querySelector( ‘#commentform’ );
if ( ! commentForm ) {
return;
}
const commentBox = commentForm.querySelector( ‘[name=comment]’ );
if ( ! commentBox || commentBox.worth ) {
return;
}
// Add remark particulars for modifying.
commentBox.innerHTML = knowledge.remark.content material;
if ( knowledge.remark.title ) {
commentForm.querySelector( ‘[name=author]’ ).worth = knowledge.remark.title;
commentForm.querySelector( ‘[name=email]’ ).worth = knowledge.remark.e mail;
}
},
maybeResetTooltip( recipeCardElement, knowledge, ranking ) {
if ( this.savingRating === ranking ) {
this.resetTooltip( recipeCardElement, knowledge );
}
},
resetTooltip( recipeCardElement, knowledge ) {
window.TastyRecipes.staticTooltip.destroy();
this.savingRating = false;
// Reset the default ranking.
const cardRatingContainer = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
if ( cardRatingContainer ) {
this.defaultRating = ( knowledge && knowledge.common ) ? knowledge.common.toFixed(1) : cardRatingContainer.dataset.trDefaultRating;
cardRatingContainer.dataset.trDefaultRating = this.defaultRating;
this.resetSelectedStar( cardRatingContainer, knowledge );
}
},
resetSelectedStar( cardRatingContainer ) {
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( selectedRatingElement ) {
selectedRatingElement.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = this.currentRatingPercentage;
selectedRatingElement.parentNode.dataset.trChecked = 1;
}
const previousSelectedElement= cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( previousSelectedElement ) {
const currentSelectedRating = previousSelectedElement.querySelector(‘[data-rating]’);
if ( currentSelectedRating !== selectedRatingElement ) {
delete previousSelectedElement.dataset.trChecked;
}
}
},
backwardCompFormRatingPosition() {
const ratingsButtons = doc.querySelector( ‘#reply .tasty-recipes-ratings-buttons, #tasty-recipes-comment-rating .tasty-recipes-ratings-buttons’ );
if ( ! ratingsButtons ) {
return;
}
const ratingsButtonsStyles = window.getComputedStyle(ratingsButtons);
if ( ! ratingsButtonsStyles.show.contains( ‘flex’ ) ) {
ratingsButtons.model.course = ‘rtl’;
}
if ( typeof tastyRecipesRating !== ‘undefined’ ) {
// Choose the ranking that was beforehand chosen in admin.
ratingsButtons.querySelector( ‘.tasty-recipes-rating[value=”‘ + tastyRecipesRating + ‘”]’ ).checked = true;
}
const ratingSpans = ratingsButtons.querySelectorAll( ‘.tasty-recipes-rating’ );
for (const ratingSpan of ratingSpans) {
ratingSpan.addEventListener( ‘click on’, occasion => {
if ( ratingSpan === occasion.goal ) {
return;
}
ratingSpan.previousElementSibling.click on();
} );
}
}
};
(perform(callback) {
if (doc.readyState !== “loading”) {
callback();
} else {
window.addEventListener( ‘load’, callback );
}
})(() => {
window.TastyRecipes.rankings.init( window.trCommon ? window.trCommon.minRating : 4 );
});
Extra pizza recipes & sources
Attempt our fan-favorite Do-it-yourself Pizza or Margherita Pizza topped with the perfect home made pizza sauce. Go traditional with Do-it-yourself Cheese Pizza, or extra distinctive with Mushroom Pizza or Taco Pizza. Or begin the day with Breakfast Pizza!