Skip to content

Instantly share code, notes, and snippets.

View danngyw's full-sized avatar

Dan Nguyen Gia danngyw

View GitHub Profile
@danngyw
danngyw / footer.php
Created September 20, 2017 08:29
test
@danngyw
danngyw / functions.php
Created June 18, 2015 03:50
Add filter to remove header logo and footer contact info
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;">