The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Link tag in CustomText field uses class defined in CSS -

Highlighted
Occasional Advisor

Link tag in CustomText field uses class defined in CSS -

I have a dynamic link that we insert into the CustomText field slots (each link is subscriber specific) and all has been well with this until now (because we've been sending out plain looking emails).  

 

The custom field contains something like this ...

<a href="http://myurl.com?12345">Link</a>

 

We're now using a nicely designed email that contains a 'fancy' button and this link has to be attached to the button. My thought was to do something simple like this and then fill out the proper CSS in the Advanced Editor section... (there's a lot of style info and we don't have enough free custom slots left to do it inline)

<a href="http://myurl.com?12345" class="myclass">Link</a>

Unfortunately the CSS is not being applied to the custom link and my nice looking formatted emails end up looking horrible (with plain boring text links). I've also tried to simply include <style> tags with the CSS therein in the XHTML editor to no avail...

 

I don't understand why this simple and seemingly logical idea isn't working.

 

Obviously we're inserting the links like this...

Dear Customer,<BR/>
<BR/>
Here is your custom link: <Property name="Subscriber.CustomText1"/><BR/>
<BR/>
Have a nice day!


or (for longer links)


Dear Customer,<BR/>
<BR/>
Here is your custom link: <Property name="Subscriber.CustomText1"/><Property name="Subscriber.CustomText2"/><Property name="Subscriber.CustomText3"/><BR/>
<BR/>
Have a nice day!

 As I said - we don't have enough room left in the custom field section to do add all the style info we need to add to it. Don't even understand why we're forced to do it this way in the first place =Z

 

 

 

2 REPLIES 2
Highlighted
Employee

Re: Link tag in CustomText field uses class defined in CSS -

I apologize for the current limitations; I do understand your frustration.  I have passed on feedback repeatedly in hopes that we will improve the custom link process, but for now, I can only offer workarounds.  You could use fields besides custom fields for this.  The "Note" field in particular can contain 500 characters.  See the bottom of this page for the customer information you could pull into the email to make this work.

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Occasional Advisor

Re: Link tag in CustomText field uses class defined in CSS -

Thanks Shannon, 

 

I'm sure we're not the average ConstantContacters here - hopefully we're at least helping to make CC even more amazing.

 

It seems like we tried the note field in the past and had some issue with it but I could be mistaken, we've come up with another work around in the mean time, but that Note field will come in handy later if it does in fact give the same level of input/output control as the custom fields.

 

Regards, 

 

Jamin

 

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured