Skip to content

Figure out mailchimp preview text #34

Description

@dellsystem
No description provided.

Activity

  1. self-assigned this
    on May 3, 2020
  2. jessesquires commented on May 3, 2020

    @jessesquires
    Member

    I just realized that 3cfa0dd didn't update this in every spot. I'll fix

  3. jessesquires commented on May 3, 2020

    @jessesquires
    Member

    nevermind lol. i just saw 986b40b

  4. anaulin commented on May 3, 2020

    @anaulin
    Member

    In #37, @jessesquires said:

    Did we vote on not just using the excerpt text for this?
    EDIT: I'm fine either way, but I think the excerpt method is a bit simpler. Less front-matter to worry about.

    I don't know if there was a deeper discussion or vote, but I got the impression from @stationaery and @dellsystem 's comments that there was a desire to have the MailChimp "email preview" to be a short pithy sentence, different from the excerpt (which is typically much longer), and also to use that in social card previews (which was done already).

  5. anaulin commented on May 3, 2020

    @anaulin
    Member

    Right now the preview text is not set to anything in MailChimp:
    Screen Shot 2020-05-02 at 7 06 03 PM

  6. stationaery commented on May 3, 2020

    @stationaery
    Contributor
  7. jessesquires commented on May 3, 2020

    @jessesquires
    Member

    @anaulin Ahh I see. I think I can fix this.

    @stationaery No problem! Let's stick with the preview text.

  8. jessesquires commented on May 3, 2020

    @jessesquires
    Member

    Figured this out. According to these docs:

    Use this merge tag to generate preview text in a custom-coded campaign. Insert *|MC_PREVIEW_TEXT|* just after the opening < body > tag in your HTML. To ensure the preview text isn’t visible in the body of your campaign, wrap the merge tag in a hidden < span > element.

    Locate or add < style type= "text / css" > < /style> to your HTML, and add this code to the "style type" value:

    .mcnPreviewText{display: none !important;}

    After the opening < body > tag, add:

    <!--*|IF:MC_PREVIEW_TEXT|*--> 
    <!--[if !gte mso 9]><!----><span class="mcnPreviewText" style="display:none; font-size:0px; line-height:0px; max-height:0px; max-width:0px; opacity:0; overflow:hidden; visibility:hidden; mso-hide:all;">*|MC_PREVIEW_TEXT|*</span><!--<![endif]--> 
    <!--*|END:IF|*-->

    Seems pretty gross. But 🤷

  9. jessesquires commented on May 3, 2020

    @jessesquires
    Member

    My original thought was to use the RSS summary for the preview. We might still be able to do that if there is a merge tag for that, but I couldn't find one in the docs. (But there are different options when editing the template.)

    Currently we have:

    <summary type="html">{{ post.excerpt | escape }}</summary>

    in feed.xml

  10. anaulin commented on May 3, 2020

    @anaulin
    Member

    Nice. (And, I mean, HTML email is pretty gross, as is MailChimp HTML, so, I feel like we're committed to the grossness here...)

  11. jessesquires commented on May 3, 2020

    @jessesquires
    Member

    Ah, here's what I had seen before: https://mailchimp.com/help/rss-merge-tags/

    However, I'm not sure if we can use *|RSSITEM:CONTENT|* for the email preview?

    Screen Shot 2020-05-02 at 7 46 00 PM

  12. anaulin commented on May 3, 2020

    @anaulin
    Member

    I couldn't find any good documentation about RSS merge tags in the "preview" field. We might need to just test it.

  13. removed their assignment
    on May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions