---
description: >-
  This block allows one to place a banner itself in the section or supplement it
  with the text, and call-to-action buttons overlay the image.
---

# Image

{% hint style="success" %}
**Tip:** To add a block, the "[<mark style="color:blue;">Collage</mark>](https://mpithemes.gitbook.io/unicorn-shopify-theme/dynamic-theme-sections/collage)" section is required. Press **"Add block"** and choose the one in **Theme Blocks**. The following block can be added only once.

Drag and drop the block to the desired placement in the section.
{% endhint %}

### Main image

Press **"Select"** to upload the necessary image both for desktop and mobile. The recommended image ratio is two-to-one (width-to-height respectively). Once an image is selected, it can be linked to pages/ collections/ products, etc. Choose the destination in the **"Link"** source selector.&#x20;

{% hint style="warning" %}
**Note!** The "Image" settings described below will only apply to the desktop mode.
{% endhint %}

If you need to change the **"Image overlay background"**, select the color from the color picker. By default, the color is set to transparent.

Press **"Image overlay gradient"** to apply the gradient vector. Read details on how to use the option [<mark style="color:blue;">here</mark>](https://mpithemes.gitbook.io/unicorn-shopify-theme/dynamic-theme-sections#image).

Adjust the transparency of an image gradient overlay using the **"Image overlay opacity"** scale from 0 to 100%.

### Heading

Use the **"Heading"** placeholder to insert a title. The font size of the title can be changed to "Large", "Medium", or "Small" in the **"Heading size"** drop-down.

If you need to change a title color, use the **"Heading color"** picker. The same color as for the desktop can be applied to the mobile view by enabling the "**Apply color on mobile"** option.

### Text

Here you can insert a text paragraph in the **"Description"** placeholder and connect a page in the **"Custom HTML"**. Press "Select page" to choose the created page from the list or add a new one by pressing the button **"Create page"**. If you press the **"Create page"** button, you will be redirected to your _Shopify admin -> Online Store -> Pages_. Read details on how to create pages in the following [<mark style="color:blue;">article</mark>](https://mpithemes.gitbook.io/unicorn-shopify-theme/faq/how-to-create-webpages).

If you need to change the description color, use the **"Text"** picker. The same color as for the desktop can be applied to the mobile view by enabling the "**Apply color on mobile"** option.

### Button/Second button

Change the internal button text in the **"Label"** field. Leave the field blank to hide the button.

To redirect customers to the desired page, edit the **"Link"**. Use the link from the source selector, or paste the one if you use an external link.

Use the **"Style"** drop-down to change the button's appearance in the sections. The theme includes three styles that can work out in your store: "Primary", "Secondary", or "Link style". Each button style can be viewed on the following [<mark style="color:blue;">help page</mark>](https://mpithemes.gitbook.io/unicorn-shopify-theme/dynamic-theme-sections#buttons).

Use the **"Color"** picker to change the button background color for the "Primary" style. For the "Secondary" style the colorized text and border inside the button will be added. If you used the "Link style", the color will be applied to the text link.

The same color as for the desktop can be applied to the mobile view by enabling the "**Apply color on mobile"** option.

### Layout

The option **"Desktop text position"** helps to place texts in different areas of the banner: "Top left", "Top", "Top right"; "Center left", "Center", "Center right", or "Bottom left", "Bottom", "Bottom right". Choose an option that best fits your needs in the drop-down.

If you need to align the text to "Left", "Center", or "Right", select one of the options in the **"Desktop text alignment"** drop-down.

In the **"Text box desktop background"**, you can set the color from the color picker. By default, the color is set to transparent.&#x20;

Use the **"Text box desktop opacity"** scale to change the text box background opacity from 0 to 100 %, where 0% is an invisible background, and 100% is opaque.

The **"Text box desktop width"** scale allows setting the text width from 30% to 100%.

In the following example, you can view how the described settings might display in a banner with the next layout parameters:

<figure><img src="https://2943342198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FysL5Hr1ZCl3x5RHWgJ3m%2Fuploads%2F9bOCLk6e6htXxkPfIGmV%2Fcollage_image.png?alt=media&#x26;token=c1d2db2d-2355-4824-96b4-01bc6a4dcdb6" alt=""><figcaption></figcaption></figure>

The **"Height"** setting allows you to decide whether to use the default image size by choosing the "Adapt to image" option. Alternatively, select the "Fixed aspect ratio" option to change the image size using the "**Fixed aspect ratio"** scale. The parameters vary from 50% to 150%, where 50% is a square image, 100% - is a landscape, and 150% is a portrait.

### Animation

#### Desktop hover animation

If you want to add an animation inside the image container, choose the suggested option from the list. By default, the block uses the **"Inherit global settings"** option. If there is no need to apply animation settings for the block individually, leave this option as it is. In this case, decide on the animation image effect in the global settings of the Theme Editor by using the "**Banner image desktop hover animation**" drop-down. Read the details on the following [<mark style="color:blue;">help page</mark>](https://mpithemes.gitbook.io/unicorn-shopify-theme/theme-settings/styles).

The options **"Zoom in"** and **"Zoom out"** place the zooming effect to enlarge or decrease an image on the mouse hover. You can activate the opacity over the image by choosing **"Add overlay opacity"** and selecting a color for the _"Image overlay background"_ or _"Image overlay gradient"_ (read the details [<mark style="color:blue;">above</mark>](#image)). To use this option, make sure that the _"Image overlay opacity"_ is set to be transparent. The overlay opacity and zooming effect of an image can be achieved with an active **"Zoom in, add overlay opacity"** or **"Zoom out, add overlay opacity"**. The option **"None"** deactivates the animation.

You can read more about the described options on the following [<mark style="color:blue;">help page</mark>](https://mpithemes.gitbook.io/unicorn-shopify-theme/dynamic-theme-sections#animation).



Here is how the block might be displayed in the section:

<figure><img src="https://2943342198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FysL5Hr1ZCl3x5RHWgJ3m%2Fuploads%2FeJpSHsPcRTJ5uOWH3maB%2Fcollage_image%20desktop.png?alt=media&#x26;token=c56dcd14-bf53-477d-bfba-444d3fb63f7e" alt=""><figcaption></figcaption></figure>
