Support

Home Forums Event Espresso Premium Styling link of shortcode in Messages System EE4 | Accessibility

Styling link of shortcode in Messages System EE4 | Accessibility

Posted: September 11, 2024 at 3:38 am

Viewing 4 reply threads


Marco

September 11, 2024 at 3:38 am

Hi support,

I have created some custom email templates. In one of the templates I use the shortcode [EVENT_LINK]. Just like all the other links in an email the default hex color code of the link which is generated by this shortcode is #2BA6CB.

By using inline styling I am able to use a different color for links I’ve created myself in the custom email template. However, as for as I know, this is not the case for the link which is generated by the shortcode [EVENT_LINK].

Google Inspector shows that the contrast of color #2BA6CB on a white or light grey background is very poor. That’s bad for accessibility.

I have two questions:

1) Is it possible, by using inline styling (not by creating a whole new email template variation), to change the default color of the link which is generated by shortcode [EVENT_LINK]?

2) If not, I would like to submit a Request for Change. In a future update of EE4, could you please change the default link color in the generated emails from #2BA6CB (light blue) to a darker shade of blue? For example: #2271b1 or #1565c0 or #1a0dab.

Kind regards,
Marco


Marco

September 17, 2024 at 1:21 am

Hi support,

When will you be able to respond to my outreach for support?


Tony

  • Support Staff

September 17, 2024 at 6:24 am

Hi there,

My apologies, I created a ticket to discuss this further and then didn’t update your thread with a solution (no idea why!).

1) Is it possible, by using inline styling (not by creating a whole new email template variation), to change the default color of the link which is generated by shortcode [EVENT_LINK]?

This is possible, but you’ll basically need to build out your own event link and you can do that using the [EVENT_URL] shortcode, for example:

<a href="[EVENT_URL]" style="color:#2271b1;">[EVENT_NAME]</a>

Should output the same URL but with inline styles for the colour requested above.

Is that what you are looking for?

2) If not, I would like to submit a Request for Change. In a future update of EE4, could you please change the default link color in the generated emails from #2BA6CB (light blue) to a darker shade of blue? For example: #2271b1 or #1565c0 or #1a0dab.

This is something I have opened an internal ticket to discuss further.


Marco

September 17, 2024 at 2:18 pm

Hi Tony,

Your solution to create a custom event link works perfectly. Thx!


Tony

  • Support Staff

September 17, 2024 at 3:34 pm

You’re most welcome.

Any further issues/questions just let me know.

Viewing 4 reply threads

The support post ‘Styling link of shortcode in Messages System EE4 | Accessibility’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso