{"id":274,"date":"2017-07-28T16:10:18","date_gmt":"2017-07-28T16:10:18","guid":{"rendered":"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/?p=274"},"modified":"2017-07-28T20:58:49","modified_gmt":"2017-07-28T20:58:49","slug":"plain-text-email-hyperlinks","status":"publish","type":"post","link":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/","title":{"rendered":"HTML Email and Litmus &#8211; Prevent Plain Text Email Hyperlinks From Turning Blue"},"content":{"rendered":"<h2>HTML Email and Litmus &#8211; Prevent Plain Text Email Hyperlinks From Turning Blue<\/h2>\r\n<p>This article focuses on how to prevent plain text email hyperlinks from turning blue when testing email clients using an email design and marketing tool such as Litmus. This post will also be useful for situations where you want to prevent hyperlinks from turning blue.<\/p>\r\n\r\n<p>Please see the image and HTML below for a visual. The URL has been bolded for illustrative purposes and is not part of final solution.<\/p>\r\n\r\n<img loading=\"lazy\" src=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/non-hyperlinked-web-address-plain-text.jpg\" alt=\"plain text email hyperlinks\" width=\"380\" height=\"79\" class=\"alignnone size-full wp-image-284\" srcset=\"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/non-hyperlinked-web-address-plain-text.jpg 380w, https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/non-hyperlinked-web-address-plain-text-300x62.jpg 300w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/>\r\n\r\n<h4>HTML<\/h4>\r\n<pre>\r\n<div class=\"code\">\r\n&lt;tr&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;20&quot; style=&quot;font-size: 1px; line-height: 1;&quot;&gt;&amp;nbsp;&lt;\/td&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;560&quot; style=&quot;font-size: 14px; color:#6d6e71;&quot;&gt;Ut sit amet consectetur justo, vel convallis ante. Phasellus at augue eu mi posuere rhoncus. Nullam quis pretium tellus. Quisque a odio vulputate lacus suscipit blandit ut vitae dolor <b>http:\/\/www.website.com\/page\/document.pdf<\/b>. Curabitur sed purus non ante eleifend aliquet id ut lacus. Aliquam erat volutpat. Duis tincidunt, enim nec eleifend condimentum, tellus lectus tempor felis, eu dictum magna elit ut arcu. Curabitur sodales, nisi eu lobortis consequat, ligula nulla placerat augue, ac vehicula quam arcu at ex.&lt;\/td&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;20&quot; style=&quot;font-size: 1px; line-height: 1;&quot;&gt;&amp;nbsp;&lt;\/td&gt;\r\n &lt;\/tr&gt;\r\n<\/div>\r\n<\/pre>\r\n\r\n<p>The following list of email clients will show a blue colored plain text hyperlink.<\/p>\r\n<ul>\r\n<li>Apple Mail 9<\/li>\r\n<li>Apple Mail 10<\/li>\r\n<li>all versions of Outlook after 2003<\/li>\r\n<li>Gmail App(Android)<\/li>\r\n<li>Gmail App(iOS)<\/li>\r\n<li>Inbox by Gmail(iOS)<\/li>\r\n<li>all iPhones and iPads<\/li>\r\n<li>AOL all browsers<\/li>\r\n<li>Gmail all browsers<\/li>\r\n<\/ul>\r\n\r\n<p>Here is what it looks like in Outlook 2016:<\/p>\r\n<p><img loading=\"lazy\" src=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/outlook-2016-plain-text-hyperlink-blue.jpg\" alt=\"outlook 2016 plain text hyperlink blue\" width=\"358\" height=\"71\" class=\"alignnone size-full wp-image-290\" srcset=\"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/outlook-2016-plain-text-hyperlink-blue.jpg 358w, https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/outlook-2016-plain-text-hyperlink-blue-300x59.jpg 300w\" sizes=\"(max-width: 358px) 100vw, 358px\" \/><\/p>\r\n\r\n<p>In most cases inserting a zero width joiner <span class=\"white_space_pre\">&amp;#8205;<\/span> or <span class=\"white_space_pre\">&amp;zwj;<\/span> within the plain text URL will solve the issue. Normally you would insert the zero width joiner in the www and the .com as shown here <span class=\"white_space_pre\">&lt;a href=&quot;http:\/\/www.website.com\/page\/document.pdf&quot;&gt;ww&amp;zwj;w.website.co&amp;zwj;m\/page\/document.pdf&lt;\/a&gt;<\/span>. We normally do not precede linked text inside an anchor element with the http:\/\/ protocol, since it is only needed for the <span class=\"white_space_pre\">href<\/span> attribute. However, for promotional emails or for references, URL&#8217;s are usually entered as plain text with the http:\/\/ preceding it.<\/p>\r\n\r\n<p>When using plain text URLs with the http:\/\/ preceding it, placing a zero width joiner in the www and .com parts of the string will resolve the issue on email clients such as iPhone and iPads, but may yield strange results. See below:<\/p>\r\n\r\n<h4>HTML<\/h4>\r\n<pre>\r\n<div class=\"code\">\r\n&lt;tr&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;20&quot; style=&quot;font-size: 1px; line-height: 1;&quot;&gt;&amp;nbsp;&lt;\/td&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;560&quot; style=&quot;font-size: 14px; color:#6d6e71;&quot;&gt;Ut sit amet consectetur justo, vel convallis ante. Phasellus at augue eu mi posuere rhoncus. Nullam quis pretium tellus. Quisque a odio vulputate lacus suscipit blandit ut vitae dolor <b>http:\/\/ww&amp;zwj;w.website.co&amp;zwj;m\/page\/document.pdf<\/b>. Curabitur sed purus non ante eleifend aliquet id ut lacus. Aliquam erat volutpat. Duis tincidunt, enim nec eleifend condimentum, tellus lectus tempor felis, eu dictum magna elit ut arcu. Curabitur sodales, nisi eu lobortis consequat, ligula nulla placerat augue, ac vehicula quam arcu at ex.&lt;\/td&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;20&quot; style=&quot;font-size: 1px; line-height: 1;&quot;&gt;&amp;nbsp;&lt;\/td&gt;\r\n &lt;\/tr&gt;\r\n<\/div>\r\n<\/pre>\r\n\r\n<p>Using the code above reveals a hyperlink that is partially blue in Gmail App (iOS):<\/p>\r\n<img loading=\"lazy\" src=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-partially-blue-hyperlink.jpg\" alt=\"Gmail-app-iOS-partially-blue-hyperlink\" width=\"446\" height=\"564\" class=\"alignnone size-full wp-image-297\" srcset=\"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-partially-blue-hyperlink.jpg 446w, https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-partially-blue-hyperlink-237x300.jpg 237w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/>\r\n<img loading=\"lazy\" src=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-partially-blue-hyperlink-zoomed-in.jpg\" alt=\"Gmail-app-iOS-partially-blue-hyperlink-zoomed-in\" width=\"376\" height=\"97\" class=\"alignnone size-full wp-image-298\" srcset=\"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-partially-blue-hyperlink-zoomed-in.jpg 376w, https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-partially-blue-hyperlink-zoomed-in-300x77.jpg 300w\" sizes=\"(max-width: 376px) 100vw, 376px\" \/>\r\n\r\n<p>The solution that seems to work for most, if not all, email clients, is to insert the zero with space joiner inside of the http:\/\/, the www, and the domain extension (.com, .net, .biz), at the very minimum. You may need to place it many locations as possible, such as after the dots, etc. By strategically placing them in certain parts of the URL string, you will avoid it appearing partially blue in some email clients. See below:<\/p>\r\n<h2>Solution<\/h2>\r\n<h4>HTML<\/h4>\r\n<pre>\r\n<div class=\"code\">\r\n&lt;tr&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;20&quot; style=&quot;font-size: 1px; line-height: 1;&quot;&gt;&amp;nbsp;&lt;\/td&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;560&quot; style=&quot;font-size: 14px; color:#6d6e71;&quot;&gt;Ut sit amet consectetur justo, vel convallis ante. Phasellus at augue eu mi posuere rhoncus. Nullam quis pretium tellus. Quisque a odio vulputate lacus suscipit blandit ut vitae dolor <b>ht&amp;zwj;tp:\/\/ww&amp;zwj;w.webs&amp;zwj;ite.&amp;zwj;co&amp;zwj;m\/page\/document.pdf<\/b>. Curabitur sed purus non ante eleifend aliquet id ut lacus. Aliquam erat volutpat. Duis tincidunt, enim nec eleifend condimentum, tellus lectus tempor felis, eu dictum magna elit ut arcu. Curabitur sodales, nisi eu lobortis consequat, ligula nulla placerat augue, ac vehicula quam arcu at ex.&lt;\/td&gt;\r\n &lt;td valign=&quot;top&quot; align=&quot;left&quot; width=&quot;20&quot; style=&quot;font-size: 1px; line-height: 1;&quot;&gt;&amp;nbsp;&lt;\/td&gt;\r\n &lt;\/tr&gt;\r\n<\/div>\r\n<\/pre>\r\n<img loading=\"lazy\" src=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-gray-hyperlink.jpg\" alt=\"Gmail-app-iOS-gray-hyperlink\" width=\"459\" height=\"585\" class=\"alignnone size-full wp-image-300\" srcset=\"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-gray-hyperlink.jpg 459w, https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-gray-hyperlink-235x300.jpg 235w\" sizes=\"(max-width: 459px) 100vw, 459px\" \/><img loading=\"lazy\" src=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-gray-hyperlink-zoomed-in.jpg\" alt=\"Gmail-app-iOS-gray-hyperlink-zoomed-in\" width=\"382\" height=\"128\" class=\"alignnone size-full wp-image-301\" srcset=\"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-gray-hyperlink-zoomed-in.jpg 382w, https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/Gmail-app-iOS-gray-hyperlink-zoomed-in-300x101.jpg 300w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/>\r\n<p>This article may be unnecessarily long, however, as you become more experience with programming HTML emails, hacks for some issues may not resolve the worst case scenario. The worst case scenario here is that we needed to place a plain text URL, that is not hyperlinked, in a reference section of an email.<\/p>\r\n<p>We may continue to expand on this post in the future. Hoping that this is a great help to you all!<\/p>","protected":false},"excerpt":{"rendered":"HTML Email and Litmus &#8211; Prevent Plain Text Email Hyperlinks From Turning Blue This article focuses on how to prevent plain text email hyperlinks from turning blue when testing email clients using an email design and marketing tool such as Litmus. This post will also be useful for situations where you want to prevent hyperlinks [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[5,12,13],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Plain Text Email Hyperlinks - Prevent Them From Turning Blue<\/title>\n<meta name=\"description\" content=\"This is an article on how to prevent plain text email hyperlinks from turning blue in email clients when testing in email marketing tools such as Litmus.\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Plain Text Email Hyperlinks - Prevent Them From Turning Blue\" \/>\n<meta property=\"og:description\" content=\"This is an article on how to prevent plain text email hyperlinks from turning blue in email clients when testing in email marketing tools such as Litmus.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development Reference\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-28T16:10:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-07-28T20:58:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/non-hyperlinked-web-address-plain-text.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"5 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/#website\",\"url\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/\",\"name\":\"Web Development Reference\",\"description\":\"Web Development Solutions Explained -- Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/non-hyperlinked-web-address-plain-text.jpg\",\"contentUrl\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-content\/uploads\/2017\/07\/non-hyperlinked-web-address-plain-text.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/#webpage\",\"url\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/\",\"name\":\"Plain Text Email Hyperlinks - Prevent Them From Turning Blue\",\"isPartOf\":{\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/#primaryimage\"},\"datePublished\":\"2017-07-28T16:10:18+00:00\",\"dateModified\":\"2017-07-28T20:58:49+00:00\",\"author\":{\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/#\/schema\/person\/9624bee17e4fbdcaad7eb7569f5faa70\"},\"description\":\"This is an article on how to prevent plain text email hyperlinks from turning blue in email clients when testing in email marketing tools such as Litmus.\",\"breadcrumb\":{\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/\",\"url\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/\",\"url\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/plain-text-email-hyperlinks\/\",\"name\":\"HTML Email and Litmus &#8211; Prevent Plain Text Email Hyperlinks From Turning Blue\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/#\/schema\/person\/9624bee17e4fbdcaad7eb7569f5faa70\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c0c4e0ed219e3aaa419ce72b52646d59?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c0c4e0ed219e3aaa419ce72b52646d59?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7o7aF-4q","_links":{"self":[{"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/posts\/274"}],"collection":[{"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":21,"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/posts\/274\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.pixelprofessionals.com\/webdevelopmentreference\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}