Cleanup: Remove unused templates - #34
Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes template, section, snippet, and CSS files that are believed to be unreachable/unusable in the current theme setup (not editable via the theme editor), with the goal of reducing dead code and maintenance surface area.
Changes:
- Deleted unused page-related templates (
page.jsonandpage.*.json) andlist-collections.json. - Removed multiple unused sections/snippets (e.g., accordion, products, collections, form, tiles, etc.).
- Removed the corresponding section-specific CSS assets no longer referenced by the remaining templates/sections.
Reviewed changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| templates/page.json | Removed unused generic page template. |
| templates/page.how-it-works.json | Removed unused custom page template. |
| templates/page.contact.json | Removed unused custom page template. |
| templates/page.about-us.json | Removed unused custom page template. |
| templates/list-collections.json | Removed unused collections-listing template. |
| snippets/accordion-block.liquid | Removed snippet used only by the removed accordion section. |
| sections/tiles.liquid | Removed unused tiles section. |
| sections/text.liquid | Removed unused standalone text section. |
| sections/text-with-image.liquid | Removed unused text-with-image section. |
| sections/testimonials.liquid | Removed unused testimonials section. |
| sections/spacer.liquid | Removed unused spacer section. |
| sections/products.liquid | Removed unused products listing section. |
| sections/logos.liquid | Removed unused logos section. |
| sections/list-collections.liquid | Removed unused list-collections section implementation. |
| sections/form.liquid | Removed unused form section implementation. |
| sections/cookie-notice-preferences.liquid | Removed unused cookie notice preferences section. |
| sections/columns.liquid | Removed unused columns section. |
| sections/collections.liquid | Removed unused collections section. |
| sections/app.liquid | Removed unused app wrapper section. |
| sections/accordion.liquid | Removed unused accordion section. |
| assets/tiles.css | Removed CSS for deleted tiles section. |
| assets/text-with-image.css | Removed CSS for deleted text-with-image section. |
| assets/testimonials.css | Removed CSS for deleted testimonials section. |
| assets/products.css | Removed CSS for deleted products section. |
| assets/post.css | Removed CSS used only by deleted sections. |
| assets/logos.css | Removed CSS for deleted logos section. |
| assets/columns.css | Removed CSS for deleted columns section. |
| assets/collections.css | Removed CSS for deleted collections sections. |
| assets/accordion.css | Removed CSS for deleted accordion section. |
| assets/accordion-block.css | Removed CSS for deleted accordion-block snippet/section. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
JKinnez
left a comment
There was a problem hiding this comment.
Nice clean up!
Just one thing, which is not related but I just show. Are we sure that we do not need to provide the cookie notice banner?
@JKinnez we do need it but we are ignoring that for now (product decision). Problem is that since you don't have access to theme editor you can't control this banner, so we had to default either to always showing it or never showing it and we went for never showing it. US customers generally don't want it and they are still majority of our users. |
This theme is originally based on Kylie theme but it can't be edited in theme editor.
Because of that, some sections and templates that are not accessible are still in the code.
This PR tries to remove all of the dead code.
We remove:
list-collections-> this does not seem to be accessible in any way except by guessing the URLpage.*-> we had about us, contact page and generic pages. These are also not accessible without guessing URLMedia
Some of the removed pages:

