Carousel-caption is not shown on small (sm) mobile devices, because this control uses d-none class together with md, which shows the caption only on medium and > size devices . Where or how can I set the class property of bs5 carousel, i.e. carousel-caption, in order to get rid of the default class d-none?
Bootstrap’s docs say this:
You can add captions to your slides with the
.carousel-caption
element within any.carousel-item
. They can be easily hidden on smaller viewports, as shown below, with optional display utilities. We hide them initially with.d-none
and bring them back on medium-sized devices with.d-md-block
.
The d-md-block is added by Bootstrap’s code - it is not something we have control of from AppStudio.
Thank you. I was hoping that one could alter these settings e.g. with class property and !important.
1 Like