1
I am using Bootstrap 4 and I cannot change the indicator to appear the text in relation to the item. I tried some options of other Stackoverflow answers but none worked, if anyone can give an example of working code, thank you. Note: I’m using Sass with webpack.
<div class="container">
<div id="carouselContent" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ul class="carousel-indicators">
<li data-target="#carouselContent" data-slide-to="0" class="active">text1</li>
<li data-target="#carouselContent" data-slide-to="1">text 1</li>
<li data-target="#carouselContent" data-slide-to="2">text 2</li>
</ul>
<div class="carousel-inner" role="listbox">
<div class="carousel-item active text-center p-4">
<h5>Text 1</h5>
<p>
text ...
</p>
<p>
text ...
</p>
</div>
<div class="carousel-item text-center p-4">
<h5>Text 2</h5>
<p>
text ...
</p>
<p>
text ...
</p>
</div>
</div>
<a class="carousel-control-prev" href="#carouselContent" role="button" data-slide="prev" data-interval="4000">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselContent" role="button" data-slide="next" data-interval="4000">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
I don’t know if I understand... where do you have the arrows you want to change by text? Type in place of the right arrow put "next" and the left "previous" is this?
– hugocsl