# Main collection ![image](https://docs-assets.foxecom.app/pebble-theme/Fox-BG%20Light%20\(12\)_cW94MT1c.jpg) This article guides you on how to customize and show a list of products based on a category in a grid view on your collection page. ## How to customize a Main collection section 1. In the theme editor (**Customize**), open the template selector. 2. Select **Collections**, then **Default collection.** 3. On the left-sidebar, locate **Main collection**. 4. Make necessary changes **> Save.** ### Layout Customize how products are displayed and how customers browse through the collection. | Setting | Description | | ----------------- | ----------------------------------------------------------------------------------------------------- | | Container | Choose Full to display the product grid at full width, or Fixed to keep it within the page container. | | Products per page | Set how many products are displayed on each page. | | Pagination type | Choose how customers browse additional products: Number, Infinite, or Load more. | | Horizontal gap | Set the horizontal spacing between products in the grid. | | Vertical gap | Set the vertical spacing between products in the grid. | ![image](https://docs-assets.foxecom.app/pebble-theme/pebble_MRszG6qs.gif) ![image](https://docs-assets.foxecom.app/pebble-theme/pebble2_3Npc8J8V.gif) ![image](https://docs-assets.foxecom.app/pebble-theme/pebble3_MCgVhlnW.gif) You can go to **Theme Settings > Product cards** to customize and personalize how your product cards look and behave to perfectly match your brand. *Learn more:* [*Product cards*](https://docs.foxecom.com/pebble-theme/theme-settings/product-cards) ### Filtering & sorting ![image](https://docs-assets.foxecom.app/pebble-theme/image_k9JpSypL.png)Allow your customers to filter collections and search results by product availability, price, color, and more. | Setting | Description | | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Enable filtering | Enable product filters on the collection page. Customize available filters using Shopify’s Search & Discovery app. [*Learn more*](https://help.shopify.com/en/manual/online-store/storefront-search/search-and-discovery-filters) | | Desktop filter layout | Choose how filters are displayed on desktop: Vertical or Drawer. The Drawer layout is used by default on mobile. | | Enable sorting | Allow customers to sort products on the collection page. | | Grid layout control | Allow customers to switch between available product grid layouts. | | Expand filter groups | Enter the filter groups you want expanded by default when customers open the collection page. Separate multiple groups with commas, for example: Price, Color, Size. | ## How to customize filters To customize the filters displayed on your collection pages, use [**Shopify’s Search & Discovery app**](https://apps.shopify.com/search-and-discovery). This lets you add, remove, and manage the filters customers can use to browse your products. Steps: 1. Install the [**Shopify Search & Discovery**](https://apps.shopify.com/search-and-discovery) app for your store 2. Open **Search & Discovery app> Filters > Edit filters** 3. Click **Add filter** to add new filters, or edit/remove existing ones. 4. **Save** your changes. ![](https://docs-assets.foxecom.app/pebble-theme/7c4930ac-c93f-47e7-bb62-8655d54d0800.png) ## How to set up an image categories filter like the Pebble demo ![image](https://docs-assets.foxecom.app/pebble-theme/image_1sS9rAAF.png) 1. In your **Shopify admin**, go to **Settings → Metafields and metaobjects**. 2. Create a new **Metaobject definition**. 3. Name it **Categories** (or any name you prefer). 4. Add the following fields: * **Label** → Single line text * **Image** → File → Image 5. Click **Save** to create the metaobject. 6. Open the **Categories** metaobject and click **Add entry**. 7. For each category: * Enter the category name in **Label**. * Upload the category image in **Image**. 8. Click **Save**. 9. Repeat **Add entry** for each category you want to display. ![image](https://docs-assets.foxecom.app/pebble-theme/image_mLxtrInF.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_8zCWckir.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_Nk3WQpLo.png) 1. Create a new **Product metafield definition.** 2. Name it: Categories (or any name you want). 3. Type: Select the **Metaobject** you've created and choose **List type** instead of **One entry.** 4. In **Category assignments**, assign categories to the **Categories filter** you want. 5. Click **Save.** ![image](https://docs-assets.foxecom.app/pebble-theme/image_zgTlvRGa.png) 1. Go to **Products** and select a product. 2. Scroll to **Metafields** and find your **Categories** metafield 3. Add values, then click **Save.** 👉 Repeat for each product you want to include in the filter. ![image](https://docs-assets.foxecom.app/pebble-theme/image_pt9iaC0Y.png) 1. Go to **Apps → Search & Discovery → Filters**. 2. Click **Add filter** and select your **Categories** metafield. 3. Under **Manage values**, set the visual display to **Image**. 4. Click **Save**. ![image](https://docs-assets.foxecom.app/pebble-theme/image_lTtqrdgS.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_KaDGlhkk.png)