# Collection banner


Displaying a banner/ background with highlighted features/ offers on a collection page can effectively improve customers' shopping experiences and boost your sales.
## How to add a Collection banner section
1. In the theme editor (**Customize**), open the template selector.
2. Select **Collections**, then **Default collection.**
3. On the left-side bar, add **Collection banner.**
## How to customize a Collection banner section
### Section settings
| Setting | Description |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Container | Choose Full to display the banner at full width, or Fixed to keep it within the page container. |
| Enable header overlay | Enable the header to overlay the collection banner. Applies only on desktop and when this section is at the top of the page. |
| Show image | Enable or disable the collection banner image. |
| Image | Select a desktop image for the collection banner. |
| Image mobile | Select a separate image for mobile devices. |
| Media overlay | Add an overlay on top of the banner image. |
| Height | Set the banner height. |
| Enable parallax | Enable a parallax scrolling effect for the banner image. |
| Mobile height | Set the banner height on mobile. Choose Auto or Adapt to image. |
When multiple image sources are available, the banner image uses this priority:
1. **Collection metafield image** — [*Learn how to add a collection banner with metafields*](#add-an-image-banner-to-your-collection-using-metafields)
2. **Collection featured image** (set it up in **Shopify Admin > Products > Collections**) — [*Learn more*](https://help.shopify.com/manual/products/collections/collection-layout#add-a-featured-image-to-a-collection)
3. **First product’s image** (from the first product in the collection)
4. **Section image** (set in this section setting)
If no metafield or featured image is available, the first product’s image is used. If the collection has no products, the section image is used.
### Block settings
The Content block controls the layout, position, width, and spacing of the banner content. *Learn more about Content block setting: Global settings*
The Content block includes **3 nested blocks**, which allow you to manage each content element separately:

*Learn more:* [*How to add a collection title and description*](https://help.shopify.com/en/manual/products/collections/collection-layout)

*Learn more:* [*How to add a collection title and description*](https://help.shopify.com/en/manual/products/collections/collection-layout)

## Add an Image banner to your Collection using Metafields
Go to Shopify **Settings** > **Metafields and metaobjects** > **Collections** > Select **Add definition**

Create 2 new metafield definitions with:
1. **Namespace and key:**
* For desktop banner: `foxtheme.collection_banner`
* For mobile banner: `foxtheme.collection_banner_mobile`
2. **Type:** File (Image)
Then save changes
You can **add collection banner for desktop and mobile view separately** by setting up **two metafield definitions** for Collections.


Once you have created the metafield definitions, go to **Products > Collections** > select the collection you want to add collection banner to.
In the **Metafields** section, select an image to be featured and there you have it 🎉
