How do I specify a custom image for my referral program's Twitter share?

The instructions provided below are intended for use only if you feel comfortable editing your store's theme. If you don't feel comfortable making these types of changes, email us at support@shopcircle.co and we can make the changes for you.

First, you'll need to locate where your social meta tags are first. This is usually a snippet that's included in theme.liquid, and the file is typically something like snippets/meta-tags.liquid or snippets/social-meta.liquid, etc. Once you find where your social meta tags are, typically there are a lot of "if" statements determining when to use which meta tags. You'll need to either add to that if statement, or add a new one like this:

{% if template == blank and canonical_url contains 'a/refer-a-friend/redeem' %}
<!-- include conjured referral code for twitter sharing -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@YOUR_TWITTER_HANDLE">
<meta name="twitter:creator" content="@YOUR_TWITTER_HANDLE">
<meta name="twitter:title" content="YOUR TITLE">
<meta name="twitter:description" content="YOUR DESCRIPTION">
<meta name="twitter:image" content="TWITTER_IMAGE_URL">
{% endif %}


Make sure you update all the uppercase variables above with your personal content, and that the TWITTER_IMAGE_URL is an image with dimensions 1024px by 512px.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us