Fixing missing css values for CSS Validators - kary4/divituts GitHub Wiki
/* Clean up the w3c validator divi issue */
function start_modify_html() {
ob_start();
}
function end_modify_html() {
$html = ob_get_clean();
$html = str_replace( 'letter-spacing: px', 'letter-spacing: 1px', $html );
$html = str_replace( 'letter-spacing:px', 'letter-spacing:1px', $html );
$html = str_replace( 'speak:none', 'speak:never', $html );
echo $html;
}
add_action( 'wp_head', 'start_modify_html' );
add_action( 'wp_footer', 'end_modify_html' );