Skip to content

Instantly share code, notes, and snippets.

danngyw

Block or report user

Report or block danngyw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View footer.php
@danngyw
danngyw / functions.php
Created Jun 18, 2015
Add filter to remove header logo and footer contact info
View functions.php
add_filter('et_get_mail_header','remove_logo_in_email');
function remove_logo_in_email(){
$mail_header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
</head>
<body style="font-family: Arial, sans-serif;font-size: 0.9em;margin: 0; padding: 0; color: #222222;">
You can’t perform that action at this time.