Skip to content

Instantly share code, notes, and snippets.

@ECkurt
Last active November 30, 2018 18:31
Show Gist options
  • Save ECkurt/94e9f7253fcbfe9ef3fb7385cd67bae3 to your computer and use it in GitHub Desktop.
Save ECkurt/94e9f7253fcbfe9ef3fb7385cd67bae3 to your computer and use it in GitHub Desktop.
Add a scrolling title tag to your Shopify store
<script>
!function t(u){document.title=u,setTimeout(function(){t(u.substr(1)+u.substr(0,1))},300)}("{% if template contains "index" %}{{ page_title }}{% else %}{{ page_title }}{% if current_tags %} {{ 'general.meta.tagged_html' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} {{ 'general.meta.page' | t: page_number: current_page }}{% endif %}{% unless page_title contains shop.name %} - {{ shop.name }}{% endunless %}{% endif %} - ");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment