Forked from carolineschnapp/new_gist_file.liquid
Last active
August 26, 2016 14:42
-
-
Save freakdesign/45ee95f4b722a219bc6b to your computer and use it in GitHub Desktop.
Add edit button to Shopify page
This has stopped working now on new Blog Article pages that don't have the old ID numbers. It continues to work fine on old article pages that still have the IDs.
If you change it to
var blogID = {{ article.id }};
it works for article pages, but creates a console error on product pages.
Is there a way to hide the button from the general public? At the moment it seems to be visible to everyone.
Many thanks
I tested the above code, but the edit button is no longer appearing, even when logged in as an admin user.
I ended up doing it this way https://gist.github.com/suture/17e7568e10bd743de2e8999426c0a416
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fuckin A!