Main Collection Section Render on Homepage

Hey Dev,

“I want to render the main-collections section from the Kalles theme on the homepage. How can I achieve this?”

Thanks you,

Hey - I tried googling “Kalles theme” and found a lot of themeforest links. I would highly suggest using themes from the Shopify store, due to a lot better security and support, generally.

Also for reference, the .dev community is primarily for devs helping devs; not sure if you’re asking about technical implementation or hoping it was possible via the theme editor/admin. Maybe the merchant forums would be a good place to ask this question.

That being said, it’s hard to help - especially regarding themeforest themes - without further context. Can you share the main-collections.liquid code? Generally you can render sections with {% section 'main-collection' %}, however you’ll for sure need some parameters like {% section 'main-collection', collection: CollectionDrop %}.

Hey,

thanks for your response! I completely understand the preference for Shopify Store themes due to better security and support. However, in this case, I’m working on a custom implementation that isn’t theme-specific. I just referenced the Kalles theme as an example.

My goal is to render a ‘main-collections’ section on the homepage and implement collection-style filtering and sorting, similar to how it works on collection pages.

I have successfully added the section to the homepage, but the sorting and filters are not working. Since filtering typically relies on Shopify’s faceted filtering system (facets.liquid in Dawn, for example), I might need to set up additional parameters.

Ah fair play - never had this usecase. What are you trying to achieve? Would it be better simply using /collections/all as your main page via ads and maybe even a redirect from index to that?

Filtering and pagination proably wont work on index, as they rely on the /collections/ endpoint. You might need to use the Section Rendering API, if the section does not already, to fetch results from that. It’s definitely possible - but why? :blush: