I have been working on customizing a WordPress theme that originally utilized a bootstrap template. However, I am currently facing an issue with the slider designed for the testimonials section.
To create the slider, I decided to use Owl Carousel and included the shortcode below within the div
in my index.php
file:
<?php
echo do_shortcode('[owl-carousel category="testimonial" singleItem="true" autoPlay="true"]');
?>
The testimonial slider is supposed to display a client's statement along with their image in a circular format at the bottom. For styling the image, I added the following CSS code:
.img-circle {
margin-top: 20px;
height: auto;
width: 100px;
}
Despite specifying the width of the image, it ends up taking the full width of the containing div
. I intend to show only one client per slide, hence I used singleItem="true"
in the shortcode. However, I am struggling to confine the image within the desired dimensions. Any suggestions on how to achieve this?