A space to discuss online store customization, theme development, and Liquid templating.
I duplicated and modified an existing theme. I pulled the theme files using the CLI, edited the theme using VS code and checked the results. I then push the theme to as follows:
```
shopify theme push --theme "Ver 1.02 (July 17, 2023)"
┏━━ Pushing theme files to Ver 1.02 (July 17, 2023) (#########6226) on inland-cape-rice.myshopify.com
┃ 100%
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (3.71s) ━━━
√ Your theme was pushed successfully
View your theme:
https://[company name]/?preview_theme_id=########6226
Customize this theme in the Theme Editor:
https://[company name]/admin/themes/#######6226/editor
I then returned to development to compare the two.
July 12> shopify theme dev
╭─ success ──────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Preview your theme │
│ • http://127.0.0.1:9292 [1] │
│ │
│ Next steps │
│ • Customize your theme at the theme editor [2] │
│ • Share your theme preview [3] │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────╯
[1] http://127.0.0.1:9292
[2] https://[company name]/admin/themes/########9234/editor
[3] https://[company name]/?preview_theme_id=########9234
The formats on the two are very different. The pushed theme looks like this:
The theme on the development side looks like this:
Template page code:
Let's keep this online so that others can learn from this.
Hi Nealrm - it sounds like the theme on the live Shopify store is not accepting the changes from the development environment, is that correct?
Can I ask what version of the CLI you're using? There may be a syncing issue that was resolved in recent CLI versions.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks for the reply. The CLI version is 3.47.5.
I checked the code using the code editor on the Shopify site. It appears to be identical.
On a hunch, I replaced "{% stylesheet %}" with "<style>". That worked. Not sure why the template was not accepting the CSS inside the code tag, but it clearly was not.