← back to Designer Wallcoverings
Stage P2 press-band move-up on dev clone of 5.2 (theme 143956443187): reorder index.json hero->press->products; fix social-icons font copy
f2ef0687c8bd6bd0d3fed9831ff95ad9d70b9cc0 · 2026-06-23 18:45:39 -0700 · Steve
Files touched
A shopify/frontpage-sprint/apply-p2-pressband.pyA shopify/frontpage-sprint/p2_theme_id.txt
Diff
commit f2ef0687c8bd6bd0d3fed9831ff95ad9d70b9cc0
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Jun 23 18:45:39 2026 -0700
Stage P2 press-band move-up on dev clone of 5.2 (theme 143956443187): reorder index.json hero->press->products; fix social-icons font copy
---
shopify/frontpage-sprint/apply-p2-pressband.py | 31 ++++++++++++++++++++++++++
shopify/frontpage-sprint/p2_theme_id.txt | 1 +
2 files changed, 32 insertions(+)
diff --git a/shopify/frontpage-sprint/apply-p2-pressband.py b/shopify/frontpage-sprint/apply-p2-pressband.py
new file mode 100644
index 00000000..80919c36
--- /dev/null
+++ b/shopify/frontpage-sprint/apply-p2-pressband.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+"""P2: move the press-band section (pxs-image-with-text-overlay composite logo image)
+from the bottom of the homepage to right after the hero (hero -> social proof -> products).
+Reorders templates/index.json on the P2 DEV theme only. Reversible. Live untouched.
+Usage: SHOPIFY_THEME_TOKEN=... python3 apply-p2-pressband.py <P2_DEV_THEME_ID>
+"""
+import os, sys, json, urllib.request, urllib.parse
+
+STORE="designer-laboratory-sandbox.myshopify.com"; API="2024-10"
+TOK=os.environ["SHOPIFY_THEME_TOKEN"]; DST=sys.argv[1]
+H={"X-Shopify-Access-Token":TOK,"Content-Type":"application/json"}
+HERO="home_slideshow_EXmkyD"; PRESS="home_image_with_text_overlay"
+
+def get(key):
+ q=urllib.parse.urlencode({"asset[key]":key})
+ return json.load(urllib.request.urlopen(urllib.request.Request(f"https://{STORE}/admin/api/{API}/themes/{DST}/assets.json?{q}",headers=H)))["asset"]["value"]
+def put(key,val):
+ body=json.dumps({"asset":{"key":key,"value":val}}).encode()
+ return urllib.request.urlopen(urllib.request.Request(f"https://{STORE}/admin/api/{API}/themes/{DST}/assets.json",data=body,headers=H,method="PUT")).status
+
+idx=json.loads(get("templates/index.json"))
+order=idx["order"]
+print("BEFORE:", order)
+assert HERO in order and PRESS in order, "hero or press section missing"
+order=[s for s in order if s!=PRESS] # remove press from current spot
+hpos=order.index(HERO)
+order.insert(hpos+1, PRESS) # reinsert right after hero
+idx["order"]=order
+print("AFTER: ", order)
+s=put("templates/index.json", json.dumps(idx,indent=2))
+print(f"PUT index.json -> HTTP {s} (press band now at position {order.index(PRESS)+1})")
diff --git a/shopify/frontpage-sprint/p2_theme_id.txt b/shopify/frontpage-sprint/p2_theme_id.txt
new file mode 100644
index 00000000..79835ac7
--- /dev/null
+++ b/shopify/frontpage-sprint/p2_theme_id.txt
@@ -0,0 +1 @@
+143956443187
\ No newline at end of file
← 712b86ae Front-page sprint PUBLISHED LIVE as Steves Version 5.2 (1439
·
back to Designer Wallcoverings
·
auto-save: 2026-06-23T18:54:15 (7 files) — shopify/scripts/c a0fd572c →