Add Ingredients

Filters available in WPPizza Add Ingredients

wppizza_ingredients_filter_email_styles

The below filter will *only* apply to emails (as emails need style declarations to be added inline). For Print templates, use the css input in WPPizza->Templates->Print in conjunction with your browsers element inspector

@param: array
@return: array

add_filter('wppizza_ingredients_filter_email_styles', 'myprefix_ingredients_filter_email_styles');
function myprefix_ingredients_filter_email_styles($styles){
	/*  
	default styles passed on to $styles parameter are currently as follows (though might get tweaked in the future) 
		
	$styles = array();
	$styles['ingrinfo'] 	= 'white-space: initial; margin: 3px; line-height: 130%;' ;
	$styles['ingr_item'] 	= 'font-style: italic;' ;
	$styles['ingrinfo'] 	= 'white-space: initial; margin: 3px 3px 3px 20px; line-height: 130%; font-size:85%;' ;
	$styles['ingrgrp'] 	= 'white-space: initial; margin: 3px;line-height: 130%;' ;
	$styles['ingrgrp_0'] 	= 'white-space: initial; margin: 3px;line-height: 130%; display:inline' ;
	$styles['ingrgrp_1'] 	= 'white-space: initial; margin: 3px;line-height: 130%; margin-left: 15px' ;
	$styles['ingrgrp_lbl'] 	= 'font-weight: bold; padding-right: 3px;' ;
	$styles['comments'] 	= 'padding: 3px 0; font-size: 75%;' ;
	*/

	/* 

	if you want to - for example - increase the font for each ingredients in your emails to 
	120% instead of the default of 85%, you can do this 

	*/
	$styles['ingrinfo'] .='font-size:120%;';

	/* 
	or you could override the whole declaration , removing any margins etc and setting font to 14px
	*/
	$styles['ingrinfo'] ='font-size:14px;';

return $styles;
}