> ## Documentation Index
> Fetch the complete documentation index at: https://docs.digifist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Carousel

> Display multiple content cards in a sliding carousel with customizable media, flexible layouts, and desktop/mobile-specific positioning.

The Carousel section displays multiple content cards as interactive slides. Each card can contain media (images or videos), headings, text, and call-to-action buttons with independent desktop and mobile configurations for optimal display across all devices.

<img src="https://mintcdn.com/digifist/yzaDWPNLWDNpkBqY/images/theme/sahara/sections/carousel/carousel-overview.png?fit=max&auto=format&n=yzaDWPNLWDNpkBqY&q=85&s=b5c843a98ae88cc928d3093cec5aa569" alt="Carousel section overview" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/carousel-overview.png" />

## What this section controls

This section controls carousel displays with the following capabilities:

* Unlimited customizable card blocks
* Two distinct layout modes (plain and image-only)
* Configurable slides per view (1-6 cards)
* Independent desktop and mobile media
* Flexible content positioning and alignment
* Per-card color schemes and aspect ratios
* Automatic or manual slide navigation

## How the Carousel section works

The Carousel uses a block-based system where each "Card" block becomes a carousel slide. You can add unlimited cards, each with its own media, content, and styling. The section automatically handles responsive behavior, showing fewer slides on mobile devices while maintaining optimal viewing.

## Getting started

<Steps>
  <Step title="Open Theme Customizer">
    From Shopify admin, access the Theme Customizer.
  </Step>

  <Step title="Add Carousel section">
    Add the section to your page or template.
  </Step>

  <Step title="Add card blocks">
    Click "Add block" and select "Card" to create carousel slides.
  </Step>

  <Step title="Configure each card">
    Add media, heading, text, and optional button for each card.
  </Step>

  <Step title="Adjust section settings">
    Configure slideshow behavior, slides per view, and spacing.
  </Step>
</Steps>

<img src="https://mintcdn.com/digifist/yzaDWPNLWDNpkBqY/images/theme/sahara/sections/carousel/carousel-location.png?fit=max&auto=format&n=yzaDWPNLWDNpkBqY&q=85&s=a0dfc133be111f278e5463e346bf8ae8" alt="Carousel section in Theme Customizer" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/carousel-location.png" />

## Section settings

<Tabs>
  <Tab title="Layout">
    ### Section layout

    Controls the overall visual style of carousel cards.

    <AccordionGroup>
      <Accordion title="Plain" icon="square">
        Standard card layout with visible card containers, borders, and padding.

        **Best for:**

        * Text-heavy content
        * Product highlights with descriptions
        * Multi-element cards (heading + text + button)

        Cards have clear separation with background and borders.
      </Accordion>

      <Accordion title="Only image" icon="image">
        Streamlined layout emphasizing media without visible card containers.

        **Best for:**

        * Image galleries
        * Product showcases
        * Visual-first designs with minimal text

        Cards appear seamless with focus on imagery.
      </Accordion>
    </AccordionGroup>

    <img src="https://mintcdn.com/digifist/yzaDWPNLWDNpkBqY/images/theme/sahara/sections/carousel/section-layouts.png?fit=max&auto=format&n=yzaDWPNLWDNpkBqY&q=85&s=c74be55748172214e9f121664506639a" alt="Section layout options" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/section-layouts.png" />

    ### Show card border

    Adds visible borders to individual cards.

    **Default:** False (hidden)

    <Note>
      Only applies when section layout is set to "Plain."
    </Note>
  </Tab>

  <Tab title="Slideshow">
    ### Show navigation arrows

    Displays previous/next navigation arrows for manual slide control.

    **Default:** True

    <Tip>
      Keep arrows enabled for better user control, especially when autoplay is off.
    </Tip>

    ### Slideshow autoplay interval

    Controls automatic slide advancement timing.

    **Range:** 0 – 10 seconds (in 1-second increments)\
    **Default:** 0 (autoplay disabled)

    <AccordionGroup>
      <Accordion title="Autoplay guidelines" icon="play">
        **0 seconds:**

        * Manual navigation only
        * Best for text-heavy content
        * Recommended for accessibility

        **3-5 seconds:**

        * Quick browsing
        * Image-focused carousels
        * Marketing highlights

        **7-10 seconds:**

        * Detailed content
        * Longer text blocks
        * Video-inclusive slides
      </Accordion>
    </AccordionGroup>

    <Warning>
      Use autoplay sparingly. It can reduce accessibility and user control.
    </Warning>

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/slideshow-settings.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=a50be55f5859561787034979d44527c7" alt="Slideshow configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/slideshow-settings.png" />
  </Tab>

  <Tab title="Display">
    ### Slides per view

    Number of cards visible simultaneously on desktop.

    **Range:** 1 – 6 slides\
    **Default:** 4

    <AccordionGroup>
      <Accordion title="Slides per view recommendations" icon="grip">
        **1 slide:**

        * Full-width hero carousels
        * Large featured content
        * Video-heavy slides

        **2-3 slides:**

        * Balanced visibility
        * Product categories
        * Featured collections

        **4-6 slides:**

        * Compact cards (recommended: 4)
        * Icon features
        * Small product highlights
      </Accordion>
    </AccordionGroup>

    <Tip>
      Mobile automatically adjusts to show fewer slides regardless of this setting.
    </Tip>

    ### Spacing between blocks (Desktop)

    Controls horizontal spacing between cards on desktop.

    **Options:** No spacing, S, M, L, XL\
    **Default:** L

    ### Spacing between blocks (Mobile)

    Controls horizontal spacing between cards on mobile independently.

    **Options:** No spacing, S, M, L, XL

    <Note>
      Separate mobile spacing allows tighter layouts on small screens for better card visibility.
    </Note>

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/spacing-between-blocks.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=6a1ff3408b454695ecfa286b12e7b70d" alt="Display configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/spacing-between-blocks.png" />
  </Tab>

  <Tab title="Content">
    ### Heading

    Main title text for the section.

    * Inline rich text supported (bold, italic, links)
    * **Default:** "Carousel"

    ### Heading size

    Controls the size of section heading.

    **Options:** XS, S, M, L, XL\
    **Default:** XL

    ### Subheading

    Optional descriptive text displayed above the heading.

    * Inline rich text supported
    * Leave empty to hide

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/content-settings.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=6ccecffd33056a9aba347baeac7bfead" alt="Content configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/content-settings.png" />
  </Tab>

  <Tab title="Styling">
    ### Color scheme

    Select the color scheme for section background and text.

    ### Section width

    Controls horizontal width of the section.

    **Options:**

    * **Page** - Standard container width (default)
    * **Fluid** - Wider, more spacious layout
    * **Full** - Edge-to-edge full width

    ### Spacing

    Control vertical spacing around the section:

    * **Spacing top** - Margin above (None, S, M, L, XL)
    * **Spacing bottom** - Margin below (None, S, M, L, XL)

    Both default to M.

    ### Section border

    Add decorative borders: None (default), Top, Bottom, Both

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/section-border.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=1fa3173c411a205246ccd37611fb5b83" alt="Styling options" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/section-border.png" />
  </Tab>
</Tabs>

## Block settings

Each Card block becomes a carousel slide with independent media, content, and styling.

<Tabs>
  <Tab title="Content">
    ### Heading

    Title text for the card.

    * Inline rich text supported
    * Leave empty to hide heading

    ### Heading size

    Controls the size of card heading.

    **Options:** XS, S, M, L, XL\
    **Default:** XL

    ### Text

    Body content displayed below the heading.

    * Rich text editor with formatting support
    * **Supports:**
      * Bold, italic, underline
      * Lists (bulleted, numbered)
      * Links
    * Leave empty to hide

    <Tip>
      Keep text concise (20-30 words) for carousel readability.
    </Tip>

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/card-content.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=a4e178dba32b971ba8ab556a48ce7ed5" alt="Card content settings" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/card-content.png" />
  </Tab>

  <Tab title="Button">
    ### Button label

    Text displayed on the call-to-action button.

    * Leave empty to hide button

    ### Button link

    Destination URL when button is clicked.

    ### Button style

    Visual style of the button.

    <AccordionGroup>
      <Accordion title="Filled" icon="square">
        Solid background with contrasting text.

        **Best for:** Primary actions, strong CTAs
      </Accordion>

      <Accordion title="Outlined" icon="border-outer">
        Border-only style with transparent background.

        **Best for:** Secondary actions, subtle CTAs
      </Accordion>

      <Accordion title="Text link" icon="link">
        Minimal styling as underlined text (default).

        **Best for:** Tertiary actions, "Learn more" links
      </Accordion>
    </AccordionGroup>

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/button-style.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=1b3b0e35f3408b75b0ea322f102ba031" alt="Button style options" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/button-style.png" />
  </Tab>

  <Tab title="Media">
    ### Aspect ratio

    Controls the height-to-width ratio of card media.

    **Options:**

    * **Auto** - Uses natural image dimensions (default)
    * **Square:** 1:1
    * **Landscape:** 4:3, 3:2, 5:4, 16:9, 2:1, 4:1, 8:1
    * **Portrait:** 3:4, 2:3, 4:5, 9:16, 1:2

    <Note>
      All cards in a carousel should use the same aspect ratio for visual consistency.
    </Note>

    ### Media position

    Controls how media relates to text content.

    <AccordionGroup>
      <Accordion title="Top" icon="arrow-up">
        Media displays above text content.

        **Best for:** Standard card layouts
      </Accordion>

      <Accordion title="Bottom" icon="arrow-down">
        Media displays below text content (default).

        **Best for:** Text-priority designs
      </Accordion>

      <Accordion title="Background" icon="layer-group">
        Media serves as background with text overlay.

        **Best for:** Image-heavy designs, hero-style cards

        <Warning>
          Ensure sufficient contrast between media and text when using background position.
        </Warning>
      </Accordion>
    </AccordionGroup>

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/media-position.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=8ae47175bb4ec0d644d07d2da546160d" alt="Media position options" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/media-position.png" />
  </Tab>

  <Tab title="Desktop">
    ### Content position

    Controls vertical alignment of text content on desktop.

    **Options:** Top, Center (default), Bottom

    ### Content alignment

    Controls horizontal alignment of text content on desktop.

    **Options:** Start, Center (default), End

    ### Image (Desktop)

    Upload image for desktop display.

    **Recommended:** 800-1200px width depending on slides per view

    ### Video (Desktop)

    Upload Shopify-hosted video file.

    <Tip>
      Shopify-hosted videos offer better performance than external embeds.
    </Tip>

    ### External video (Desktop)

    Embed YouTube or Vimeo video. Takes priority if set.

    ### Show video controls (Desktop)

    Displays play/pause and volume controls on desktop videos.

    **Default:** False

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/desktop-settings.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=ea9ff01c5ec0f9768f8dd8eebe315182" alt="Desktop configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/desktop-settings.png" />
  </Tab>

  <Tab title="Mobile">
    ### Content position (Mobile)

    Controls vertical alignment of text content on mobile independently.

    **Options:** Top, Center (default), Bottom

    ### Content alignment (Mobile)

    Controls horizontal alignment of text content on mobile independently.

    **Options:** Start, Center (default), End

    ### Image (Mobile)

    Upload mobile-optimized image.

    **Recommended:** 600-800px width, portrait orientation

    <Note>
      Mobile media overrides desktop media on small screens when provided.
    </Note>

    ### Video (Mobile)

    Shopify-hosted video for mobile devices.

    ### External video (Mobile)

    YouTube or Vimeo video for mobile.

    <Warning>
      Videos on mobile can impact performance and data usage. Use sparingly.
    </Warning>

    ### Show video controls (Mobile)

    Displays play/pause and volume controls on mobile videos.

    **Default:** False

    <img src="https://mintcdn.com/digifist/AjN7HCMA2-6geirx/images/theme/sahara/sections/carousel/mobile-settings.png?fit=max&auto=format&n=AjN7HCMA2-6geirx&q=85&s=dce0f5f703ecd0b74e3483f60324580b" alt="Mobile configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/mobile-settings.png" />
  </Tab>

  <Tab title="Styling">
    ### Color scheme

    Select color scheme for individual card background and text.

    <Note>
      Each card can have its own color scheme for visual variety.
    </Note>

    ### Spacing inner

    Controls internal padding within the card.

    **Options:** No spacing, S, M (default), L, XL

    <Tip>
      Reduce inner spacing for compact layouts or increase for breathing room around content.
    </Tip>

    <img src="https://mintcdn.com/digifist/yzaDWPNLWDNpkBqY/images/theme/sahara/sections/carousel/card-styling.png?fit=max&auto=format&n=yzaDWPNLWDNpkBqY&q=85&s=793fd765487ec6496980c5004a5102a6" alt="Card styling options" width="3280" height="2186" data-path="images/theme/sahara/sections/carousel/card-styling.png" />
  </Tab>
</Tabs>

## Best practices

<CardGroup cols={2}>
  <Card title="Consistent aspect ratios" icon="crop">
    Use the same aspect ratio across all cards for uniform height and professional appearance.
  </Card>

  <Card title="Optimal slides per view" icon="table-columns">
    Use 3-4 slides for desktop. More than 5 can make cards too small to be effective.
  </Card>

  <Card title="Limit autoplay" icon="pause">
    Avoid autoplay for text-heavy content. If used, set 5+ seconds for readability.
  </Card>

  <Card title="Mobile-specific media" icon="mobile-screen">
    Provide portrait-oriented images for mobile to maximize card visibility on vertical screens.
  </Card>

  <Card title="Content brevity" icon="text-size">
    Keep heading to 5-7 words and text to 20-30 words maximum per card.
  </Card>

  <Card title="Layout consistency" icon="grid">
    Use "Only image" layout for visual galleries, "Plain" layout for content-rich cards.
  </Card>

  <Card title="Navigation arrows" icon="arrows-left-right">
    Keep arrows enabled when autoplay is off to ensure users can browse slides.
  </Card>

  <Card title="Color variety" icon="palette">
    Use different color schemes per card to create visual interest and highlight categories.
  </Card>
</CardGroup>

## Common use cases

<AccordionGroup>
  <Accordion title="Product feature highlights" icon="sparkles">
    Use 4-5 slides per view with "Plain" layout. Each card contains product image (4:3 aspect ratio), feature heading, brief description, and "Learn more" text link button. Center-aligned content with M inner spacing.
  </Accordion>

  <Accordion title="Customer testimonials" icon="quote-left">
    Use 3 slides per view with "Plain" layout. Background media position with customer photos. Include quote text, customer name as heading, and optional link to case study. Varied color schemes per card.
  </Accordion>

  <Accordion title="Category showcase" icon="grid-2">
    Use "Only image" layout with 4 slides per view. Category images with 1:1 aspect ratio, minimal text (category name as heading only), filled button linking to collection. Tight spacing between blocks.
  </Accordion>

  <Accordion title="Blog article preview" icon="newspaper">
    Use 3 slides per view with "Plain" layout. Article featured image on top (16:9 ratio), article title as heading, excerpt as text, "Read more" outlined button. Navigation arrows enabled, no autoplay.
  </Accordion>

  <Accordion title="Image gallery" icon="images">
    Use "Only image" layout with 5-6 slides per view. Images only (no text), auto aspect ratio, navigation arrows enabled. Mobile shows 2-3 slides with portrait images. Background media position on mobile for immersive feel.
  </Accordion>

  <Accordion title="Service offerings" icon="briefcase">
    Use 4 slides per view with "Plain" layout. Icon or illustration as image (1:1 ratio), service name as heading, 2-sentence description, text link button. Each card with different color scheme matching service category.
  </Accordion>
</AccordionGroup>

## Related sections

<CardGroup cols={2}>
  <Card title="Hero banner" icon="panorama" href="/themes/sahara/sections/hero-banner">
    Multi-slide full-width banners with carousel
  </Card>

  <Card title="Featured collections" icon="layer-group" href="/themes/sahara/sections/featured-collections">
    Collection cards with custom images
  </Card>

  <Card title="Testimonials" icon="quote-left" href="/themes/sahara/sections/testimonials">
    Customer reviews with carousel option
  </Card>
</CardGroup>
