Skip to content

Instantly share code, notes, and snippets.

@cloudflying
Created October 26, 2017 13:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloudflying/b357b701a7bacbe0742ce2e46aa00e9d to your computer and use it in GitHub Desktop.
Save cloudflying/b357b701a7bacbe0742ce2e46aa00e9d to your computer and use it in GitHub Desktop.
Backup Link Lists - Shopify

##Backup your Navigation Menus on Shopify

NOTICE: FREE FOR USE, no warranties or liabilities for misuse of the following code - use at your own risk!

  1. Create a new page template - in your Shopify Code Editor
  2. Paste the code in the page.linkbackup.liquid gist below
  3. Create a new page on your site and set the template to the name you used in step 2.
  4. Navigate to the page, right click and hit VIEW SOURCE.
  5. Save text of source somewhere as a backup.
{% layout none %}
{% for linklist in linklists %}
{{linklist.title}} || {{ linklist.handle }}
{% for link in linklist.links %}
{{ link.url }} ||| {{ link.title }}
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment