SOLVED

Re: Need to Define lang="${Language}" as global variable in mkto email template

Go to solution
Suraj_Singh
Level 2

Re: Need to Define lang="${Language}" as global variable in mkto email template

I've did some modification in the code and now its working fine with doctype in email level.

I have added doctype first then meta then the <html...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta class="mktoString" default="en" id="emailLanguage" mktomodulescope="false" mktoname="Email Language" />
<html xmlns="http://www.w3.org/1999/xhtml" lang="${emailLanguage}" xml:lang="${emailLanguage}"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com

9KpnfU8M2ryfJno.png7G58Tj5AqaX3D9x.png

:office:office">
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<!--Global Variables Begin-->
<meta class="mktoString" default="" id="emailTitle" mktomodulescope="false" mktoname="Email Title" />
<!--Other Meta Tags Begin-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, minimal-ui, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>${emailTitle}</title>
<head>
<body>Container area
</body>
</html>

 

Thanks

SanfordWhiteman
Level 10 - Community Moderator

Re: Need to Define lang="${Language}" as global variable in mkto email template

A reasonable adjustment, though the original doesn't have a problem for me. But I wouldn't have a line break after the <meta> it as it makes the HTML look sloppy, albeit valid.

Nitin_Sharma1
Level 2

Re: Need to Define lang="${Language}" as global variable in mkto email template

Hi Sanford,

 

Need your help here, I don't know why but the lang attribute is not working. Is there any specific code we need to take care of while using the lang attribute? I am using "es" as lang value but it's reading it only in an English accent.

Thanks,
Nitin Sharma
Dave_Roberts
Level 10

Re: Need to Define lang="${Language}" as global variable in mkto email template

I had a few questions about this template setup as well -- I might have been working fast, but Im pretty sure I setup a new email template and this is what populated in the template editor but definitely not something Im using for production.