Can the color of a personalization token be changed?

JKing72
Member

Hello!

 

I would like to change the font color of my personalization code and also highlight it yellow.  I cannot figure out a way to do this.  Any ideas?

 

Thanks in advance!

0 Upvotes
1 Accepted solution
JWingate2
Solution
Guide | Elite Partner
Guide | Elite Partner

Hi @JKing72 , 

 

Are you working within the HubSpot emails tool in a rich text editor? If so, you can highlight the text and in the editor bar you can select More and get into the source code and add code that will highlight the the personalization code yellow.

ie. my source code for my text editor is this:

<p style="text-align: center;">Join your new course today! <span style="color: #ff0201;">{{ personalization_token('company.about_us', 'hi') }}</span></p>


I added code to highlight the personalization yellow:

<p style="text-align: center;">Join your new course today! <span style="color: #ff0201; background-color: yellow;">{{ personalization_token('company.about_us', 'hi') }}</span></p>

 

I hope this helps!

View solution in original post

7 Replies 7
JWingate2
Solution
Guide | Elite Partner
Guide | Elite Partner

Hi @JKing72 , 

 

Are you working within the HubSpot emails tool in a rich text editor? If so, you can highlight the text and in the editor bar you can select More and get into the source code and add code that will highlight the the personalization code yellow.

ie. my source code for my text editor is this:

<p style="text-align: center;">Join your new course today! <span style="color: #ff0201;">{{ personalization_token('company.about_us', 'hi') }}</span></p>


I added code to highlight the personalization yellow:

<p style="text-align: center;">Join your new course today! <span style="color: #ff0201; background-color: yellow;">{{ personalization_token('company.about_us', 'hi') }}</span></p>

 

I hope this helps!

Jnix284
HubSpot Employee
HubSpot Employee

@JKing72 Are you referring to formatting the text after the personalization token is applied to the email (i.e. first name is Jennifer, then Jennifer would be highlighted yellow with a different font color) or are you wanting to highlight the placeholder for the personalization token?

 


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon
JKing72
Member

Good question - I would like the text pulled in to be a different color (red) and highlighted (yellow). Since I posted I figured out how to change the text color(by highlighting the personalization token and choosing the red font - even though it doesn't appear to change it in the workspace it delivers the email correctly).  So now just stuck on how to get that item to be highlighted yellow. Thanks!

danmoyle
Most Valuable Member | Platinum Partner
Most Valuable Member | Platinum Partner

@JKing72 Like @Jnix284, I want to understand as well. If I'm receiving your marketing email, will I see my name in red with a yellow highlight? @JWingate2 has a solution I think will work. I'm wondering if that's the case, what's the reasoning behind it. Not to sound judgemental, just out of curiosity.

 

Did my answer help? Please "mark as a solution" to help others find answers. Plus I really appreciate it!

I use all tools available to help answer questions. This may include other Community posts, search engines, and generative AI search tools. But I always use my experience and my own brain to make it human.


linkedininstagram

Dan Moyle

Solutions Consultant

Digital Reach Online Solutions
emailAddress
daniel@digitalreachopm.com
website
https://www.digitalreachos.com/
Jnix284
HubSpot Employee
HubSpot Employee

@JKing72 also glad to hear you could get the font color changed, but curious along with @danmoyle about the use case for this? 👀

 


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon
JKing72
Member

Sure thing!  The email I am sending is a welcome email to those who have subscribed to an app, and thus need a license code along with links to training resources.  I was tasked with mocking up a few iterations of said email for those supervising the project, with direction to make the code "stand out" as those with previous non-highlighted/color coded license codes had trouble identifying the code within the email (even though it is step by step formatted).  With all that being said, I had three iterations I wanted to send to the supervisors so they can choose which they prefer:

1) License code in red font

2) License code highlighted

3) License code highlighted AND in red font

Hope this makes sense!

danmoyle
Most Valuable Member | Platinum Partner
Most Valuable Member | Platinum Partner

@JKing72 totally makes sense. I think @JWingate2's solution should work for you then. 

 

Did my answer help? Please "mark as a solution" to help others find answers. Plus I really appreciate it!

I use all tools available to help answer questions. This may include other Community posts, search engines, and generative AI search tools. But I always use my experience and my own brain to make it human.


linkedininstagram

Dan Moyle

Solutions Consultant

Digital Reach Online Solutions
emailAddress
daniel@digitalreachopm.com
website
https://www.digitalreachos.com/