You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Create edit in admin button for current view/README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,6 @@
2
2
Adds a quick button to the page to jump to the currently viewed resource.
3
3
4
4
5
-
This version opts to avoid any Liquid edits so can be handled in JavaScript alone. The drawback to this is that Articles can be harder to capture so we fallback to the common tracking scripts in place. If the theme removes `content_for_header` or the tracking object changes, this script will no longer be able to jump to articles. Adding the ID to the page as a global within the theme (along with the edits to this script) could overcome that.
5
+
This version opts to avoid any Liquid edits so can be handled in JavaScript alone. The drawback to this is that Articles can be harder to capture so we fallback to the common tracking scripts in place. If the theme removes `content_for_header` or the tracking object changes, this script will no longer be able to jump to articles. Adding the ID to the page as a global within the theme (along with the edits to this script) could overcome that.
6
+
7
+
This is related to [this blog post](http://freakdesign.com.au/blogs/news/15572921-add-an-edit-button-on-shopify-storefronts).
0 commit comments