Email Marketing Tool

CFrancis13
Teilnehmer/-in

How do you change the case / capitalization of a personalization token?

lösung

Our brand standard is to use ALL CAPS for button text. I'm looking to include the first name in the button case, however, and was wondering if there was a way to style the first name as ALL CAPS in the email without changing the lead record.

 

Thanks for any help in advance!

 

Desired Result:

  • REGISTER FOR FREE, BOB

 

Current Result:

  • REGISTER FOR FREE, Bob
  • REGISTER FOR FREE, {{ personalization_token('contact.firstname', 'friend') }}

RESIGTER FOR FREE, {{ personalization_token('contact.firstname', 'friend') }}

0 Upvotes
1 Akzeptierte Lösung
Teun
Lösung
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

How do you change the case / capitalization of a personalization token?

lösung

Hi @CFrancis13 ,

I made a stupid mistake, the |capitalize filter only capitalizes the first letter. The |upper filter should do the trick, but somehow breaks the personalization token. Best thing you can do is accessing the source code:
Schermafbeelding 2023-06-06 om 20.43.21.png

and using the following code:

<span style="text-transform: uppercase;">{{ personalization_token('contact.firstname', 'friend') }}</span>


Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Lösung in ursprünglichem Beitrag anzeigen

7 Antworten
SSadique
Mitglied

How do you change the case / capitalization of a personalization token?

lösung

It appears that the recent updates to Thunderbird (versions 115.3.2, 64-bit) have caused a scrolling issue within received emails, which is quite frustrating and time-consuming. It would be greatly appreciated if this issue could be addressed promptly to improve the user experience.thepoultryfarm

0 Upvotes
SSadique
Mitglied

How do you change the case / capitalization of a personalization token?

lösung

For the desired result, you can apply CSS text-transform: uppercase; to the specific personalization token for the first name in your email template. To explore more email customization techniques, please check out our related blog content-dependent visa UK tier 2.

0 Upvotes
Teun
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

How do you change the case / capitalization of a personalization token?

lösung

Hi @CFrancis13 ,

 

Here is a quick way how you can achieve this by using a HubL filter;

 

REGISTER FOR FREE, {{ personalization_token('contact.firstname', 'friend')|capitalize }}

 

I haven't tested the solution above, but this will work for sure:

 

{{contact.firstname|capitalize}}

 





Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
CFrancis13
Teilnehmer/-in

How do you change the case / capitalization of a personalization token?

lösung

Thanks for the quick reply, Teun!

 

I tried both versions and still get names not in ALL CAPS.

 

REGISTER FOR FREE, {{ personalization_token('contact.firstname', 'FRIEND')|capitalize }}

and

REGISTER FOR FREE, {{contact.firstname|capitalize}}

 

0 Upvotes
Teun
Lösung
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

How do you change the case / capitalization of a personalization token?

lösung

Hi @CFrancis13 ,

I made a stupid mistake, the |capitalize filter only capitalizes the first letter. The |upper filter should do the trick, but somehow breaks the personalization token. Best thing you can do is accessing the source code:
Schermafbeelding 2023-06-06 om 20.43.21.png

and using the following code:

<span style="text-transform: uppercase;">{{ personalization_token('contact.firstname', 'friend') }}</span>


Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


MSaurat
Teilnehmer/-in

How do you change the case / capitalization of a personalization token?

lösung

Hi there! I'm try to get thsi working, having a firstname capitalisaion in an email button, but I don't see anyway to update the HTML for an email button: 

MSaurat_0-1698763379731.png

MSaurat_1-1698763550536.png

 I've tried various different version and doesn't seem to work. Any help please. 

 

M

 

0 Upvotes
CFrancis13
Teilnehmer/-in

How do you change the case / capitalization of a personalization token?

lösung

Worked perfectly, Teun! Thanks for the help!!