Last active
November 30, 2018 18:31
-
-
Save ECkurt/94e9f7253fcbfe9ef3fb7385cd67bae3 to your computer and use it in GitHub Desktop.
Add a scrolling title tag to your Shopify store
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
<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