Email anchor tag | Community
Skip to main content
New Participant
June 3, 2020
Solved

Email anchor tag

  • June 3, 2020
  • 1 reply
  • 8828 views

Hi there,

Is it possible in Marketo to add link in email that when clicked would drive to a specific section on a landing page, to be precise at the bottom?

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dave_Roberts

This is usually accomplished by adding a hash and the id="" value of the section you'd like to link to into the URL.

 

For example, if you wanted to drive to https://www.example.com and there was a section on the page with an id value of "mySection" you wanted to jump to, you'd append "#mySection" to the URL above: https://www.example.com#mySection

 

The HTML for the section would need to look something like this:

<div id="mySection">

...

</div>

 

 

1 reply

Dave_Roberts
Dave_RobertsAccepted solution
New Participant
June 3, 2020

This is usually accomplished by adding a hash and the id="" value of the section you'd like to link to into the URL.

 

For example, if you wanted to drive to https://www.example.com and there was a section on the page with an id value of "mySection" you wanted to jump to, you'd append "#mySection" to the URL above: https://www.example.com#mySection

 

The HTML for the section would need to look something like this:

<div id="mySection">

...

</div>

 

 

New Participant
April 21, 2021

Actually, the anchor would be used in a bilingual email. I want to make the text "English version below' clickable with an anchor link that will bring to the English section of the email that is under the FR section, so I do not have an URL. 

Dave_Roberts
New Participant
April 21, 2021

In the case of an email (as well for LPs), you can just the id="" value as the target, sorry to make that more complicated than it needed to be for you.

 

For a link further up the page, you'd link it to the section below by pointing the href="" to the id="" value of the destination.

 

Link HTML

<a href="#jumpToThisSpot"> English </a>

 

Destination HTML

<div id="jumpToThisSpot"> Text futher down the pages </div>