Last active
March 3, 2017 09:04
-
-
Save willbroderick/3024e50aa0cd8f89c1f8c40716dd6ab5 to your computer and use it in GitHub Desktop.
Shopify - use checkout logo as home page Twitter card image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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