# Scrolling promotion

<figure><img src="/files/OMiindpCEhkLziv4vXSZ" alt=""><figcaption></figcaption></figure>

A scrolling promotion section lets you display an eye-catching auto-scroll row of texts or images without any extra custom code. You will find it is really helpful in showcasing your promotion, brand lists, featured products, or any information.&#x20;

In this article, we will show you how to add and customize a scrolling promotion section.

{% hint style="success" %}
Steps:

1. In the theme editor **(Customize)**, click **Add section.**
2. Select **Scrolling promotion.**
3. Make necessary changes.
4. **Save** the settings.
   {% endhint %}

## Section settings

### General settings

With section settings, you can control the direction of the auto-scroll (Left/Right), its speed, and the gap between items.&#x20;

To create a mobile-friendly storefront, this section lets you adjust the item gap overall (on both desktop and mobile view) or respectively.&#x20;

<figure><img src="/files/PjVtSoMfiGkwJcfQjH1r" alt=""><figcaption></figcaption></figure>

The auto-scrolling speed can be set between 2s and 60s. The smaller the value, the faster the speed.

## Block settings

In a scrolling promotion section, there are two kinds of blocks:

* **Image** block: to add image and image link.
* **Announcement** block: to add text/icon and link.

### Image block settings

Select your image and adjust its height (between 0px and 200px).&#x20;

<figure><img src="/files/3VJTmCXo4pQYIa2Q2iVy" alt=""><figcaption></figcaption></figure>

### Announcement block settings

This block lets you display text and/or add an SVG icon to the scroll.&#x20;

<figure><img src="/files/ufclKzVmrheunZMonqBa" alt=""><figcaption></figcaption></figure>

To add an SVG icon, add this custom code and insert the image link (from your Shopify files).

```
<div>
<img src="image_link">
</div>
```

For example:

{% tabs %}
{% tab title="Annoucement block sample" %}

<figure><img src="/files/h2razhN7m1KeXJACiKPd" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Block settings" %}

<figure><img src="/files/Y94uSebp7wTpd2sltYRd" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Link an image/text

Select a page from your Shopify or add an external link to your image/announcement block to direct visitors to your desired destination.

<figure><img src="/files/IdpD0cwaYwkrCPpG9TNF" alt=""><figcaption></figcaption></figure>

If you are linking your button to an external site, you will need to include the full URL of that page, including the URL's HTTPS protocol.&#x20;

:bulb:**Tip:** simply copy the link right from the address bar of your browser.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/megamog-theme/theme-sections/scrolling-promotion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
