How to add image carousel to any blogger website?
How to add image carousel to any blogger website?
In this article, I am going to tell you how you can add an image carousel to any blogger website. This process is very easy. So, just follow the steps I have told below and you can add them to your website.
First of all, there is no option in blogger to add an image carousel. You have to use another trick to add the image carousel to your website.
What is an image carousel?
An image carousel is a type of rotating banners of the slideshow. You can add up to 5 images and it can also consist of text. The images in the carousel can also repeat in intervals.
Steps to add carousel to your blogger website:
1. I will use the bootstrap framework to add a carousel to your website. First, add this CSS and javascript to your blogger website. Just head to your blogger dashboard then click on a theme. You must also keep a backup of the theme. After clicking theme, click the three dots then click on edit HTML. Copy the CSS and js script from down then paste it on the <head> section of your website. After pasting it click on save.
CSS
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
Java script
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.min.js" integrity="sha384-lpyLfhYuitXl2zRZ5Bn2fqnhNAKOAaM/0Kr9laMspuaMiZfGmfwRNFh8HlMy49eQ" crossorigin="anonymous"></script>
2. After you complete the above step go to the layout option of your blogger dashboard. Click on add a widget option and select custom HTML/js option. After that paste the following code:
<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="..." class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="..." class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="..." class="d-block w-100" alt="...">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" 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="#carouselExampleControls" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
3. In place of "..." Paste the link of your image. Then it is done. Congratulations you have successfully added the custom carousal to your blogger website.
Thank you for reading this article. I hope this article will help you.
Comments
Post a Comment