Skip to content

Instantly share code, notes, and snippets.

@willbroderick
Last active March 3, 2017 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willbroderick/3024e50aa0cd8f89c1f8c40716dd6ab5 to your computer and use it in GitHub Desktop.
Save willbroderick/3024e50aa0cd8f89c1f8c40716dd6ab5 to your computer and use it in GitHub Desktop.
Shopify - use checkout logo as home page Twitter card image
If you use a checkout logo, and want to use that as your Twitter card image on the home page,
add the following code at the very bottom of the twitter-card snippet:
{% if template == 'index' and settings.checkout_logo_image != blank %}
<meta property="twitter:image" content="https:{{ settings.checkout_logo_image | img_url: '600x600' }}">
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment