Changing the font of representative names in email

Options
Hi, 


I'm using the S93 tag to insert recipients' senator contact information in an email. Is there any way to control the font color and size of the senator names? Whatever I do it's just black and I think 12px, which doesn't look great with the rest of the email (gray 14px font). 


Thanks,

Clara
Tagged:

Comments

  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Hi Clara,


    The tag should inherit the existing style of the surrounding paragraph/div. If it doesn't for some reason (aka, the wysiwyg editor isn't playing nice), you can use a span tag:


    <span style="font-family: verdana,Helvetica,sans-serif; font-size: 13px;"> <convio:session name="93" param="president:text:last"></convio:session></span>


    Feel free to drop your code in here & we can take a look.


    Best,

    Erik
  • Hi Erik,


    Thank you for responding! I actually did try a span tag like that, but it's still the same size/color. Below is the code I'm using.


    Thanks for your help!

    Clara


    <table width="100%" align="center" bgcolor="#f5f5f5" cellpadding="12" style="border-style: solid; border-color: #742155; border-width: 1px; line-height: 20px;">

    <tr><td style="FONT-FAMILY: Verdana; font-size: 14px; line-height: 22px; color:#666666; padding:20px;">

    <div align="center">

    &#128222; <strong>Make Noise: Call-In Day</strong> &#128222;

    <br>Call your Senators and urge them to co-sponsor [xxx]

    <BR>

    <BR><strong>Save the date to make 2 quick calls:</strong>

    <BR>Tuesday, March 12th

    <BR>9:00 a.m. - 5:00 p.m. 

    </span>

    <BR><BR>

    <span style="FONT-FAMILY: Verdana; font-size: 14px; color:#666666;">[[S93:federal senator:list:first_last_phone_______]]</span>

    </div>

    <em>You can say:</em>

    <BR><BR>

    "Hi, I'm _____, and I'm a resident of _____, and a supporter of American Jewish World Service. I want Sen._____ to know that I support the [placeholder for bill number and name] and encourage your office to do what you can to ensure its passage this Congress. The Jewish community stands with the Rohingya people of Burma. As a constituent, it&#8217;s important to me personally that my Senator move this bill forward. Thank you!&#8221;

    <BR>


    </td>

    </tr></table>
  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Hi Clara,


    Try using the XML tag here:


    <span style="FONT-FAMILY: Verdana; font-size: 14px; color:#666666;"><convio:session name="93" param="S93:federal senator:list:first_last_phone_______"></convio:session></span>


    Given your code, I think you could drop the span & have it display correctly if you use the xml tag.


    Let me know if that works!

     
  • Hi Erik,


    I just tried pasting in what you gave me, but when I sent myself a "reviewers list" test message the senators names didn't show up at all. It does show up when I take out the "S93" (see below), but unfortunately it's still black. 


    <span style="FONT-FAMILY: Verdana; font-size: 14px; color: #666666;"><convio:session name="93" param="federal senator:list:first_last_phone_"></convio:session></span>
  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Clara,


    It's likely that the constituents you are testing with don't have the congressional district on their Cons365 record. (admins by rule don't have actions associated with their acct) So the S tag is evaluating but isn't displaying anything. If you inspect the html of the email that you receive, you'll likely see the span tag, but with no data in it.


    Try using a constituent who has taken an action in the past & has their Cons365 profile populated with the District information. 
  • I tried using your exact code to send to a non-admin constituent with congressional district info, but still nothing showed up. 
  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Clara,

    I'd suggest at this point you contact support. If the email won't display the elected official, that will fall into the scope of support. Support can't help with the styling but seems like the first issue is getting the legislator data to display in the send.


    You might also try a test with nothing in the email other than the stag to see if there is something else in the wrapper that is causing an issue.


    One other test we could do would be for you to create a campaign & put me in a group (the only person in the group) and send directly to me. I am on AJWS's list & should have taken an advo action in the past so my district data should be in your list.


    While I don't see an issue with the code, you might also try using the component tool in the wysiwyg. 



     
  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Wanted to add a few screen shots where the code I provided worked:

    135a0893c6f4c5f457f56a7c77e1a538-huge-20

    Here's what that looks like with a constituent with a State Senate District number in their Cons365 record:
    04db62b964bff317fc55cb7e98267de7-huge-20


    And the Cons365 Record:
    522d9fbcf74e93331768c11b95aa58f4-huge-20

     
  • This is all really helpful, I appreciate your spending so much time on it! I'm going to do some more testing and see if I can figure it out.


    Thanks again,

    Clara
  • Just chiming in with my two cents here –


    Managing styles in emails is kind of a nightmare. If the content is showing but isn't inheriting the styles of its parent, that implies one of two possibilities:
    1. There is a <style> directive somewhere else (such as the stationery you've chosen for this particular email) that is superseding the parent <span> you are using to contain the [[S93]] tag. [[S93]] will contain its output in another <table>, as you can see in the example here:

      a4dd3c4885aa64b688c2e6f05262218c-huge-s9


      If you have something in the head of your stationery that is selecting these elements, they will be styled according to those rules.
    2. The website or email software you are using to view your message is incompatible with font-family and/or color declarations, or is applying its own styles (willfully ignoring anything you declare internally). The only way to know if this is the case is to do more research on the particular email web service or software you are using.

Categories