Ask any question about Bootstrap here... and get an instant response.
Post this Question & Answer:
How can I customize Bootstrap's carousel indicators to use custom images?
Asked on May 21, 2026
Answer
To customize Bootstrap's carousel indicators with custom images, you can replace the default indicator dots with images by modifying the HTML structure and applying some CSS.
<!-- BEGIN COPY / PASTE -->
<div id="carouselExample" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExample" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1">
<img src="image1-thumbnail.jpg" alt="Thumbnail 1" class="img-fluid">
</button>
<button type="button" data-bs-target="#carouselExample" data-bs-slide-to="1" aria-label="Slide 2">
<img src="image2-thumbnail.jpg" alt="Thumbnail 2" class="img-fluid">
</button>
<button type="button" data-bs-target="#carouselExample" data-bs-slide-to="2" aria-label="Slide 3">
<img src="image3-thumbnail.jpg" alt="Thumbnail 3" class="img-fluid">
</button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="image1.jpg" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="image2.jpg" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="image3.jpg" class="d-block w-100" alt="...">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExample" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExample" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<!-- END COPY / PASTE -->Additional Comment:
- Replace `image1-thumbnail.jpg`, `image2-thumbnail.jpg`, and `image3-thumbnail.jpg` with the paths to your custom thumbnail images.
- Ensure the `img-fluid` class is applied to the images to make them responsive.
- The `carousel-indicators` buttons now contain `
` tags, which display your custom images as indicators.
- You can further style the images using CSS to adjust size, borders
✅ Answered with Bootstrap 5 best practices.
Recommended Links:
