Skip Navigation

[Resolved] slider image border radius

This thread is resolved. Here is a description of the problem and solution.

Problem:
The issue here is that user wanted to have rounded edges on their images on the frontend.

Solution:

The easiest way to do this is to use CSS https://www.w3schools.com/css/css3_borders.asp

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Anthony 6 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#607488
slider-image-size-cover-no-border-radius.png
slider-image-size-contain-controls-overflow.png

I want slider images to have rounded corners. I have css in place that is rounding all four corners for all images on the site (img {border-radius: 7px;} ). In a previous support ticket, where only the top corners of the slider images were getting rounded, Shane pointed out that the actual images were taller than the slider specification of 300px and getting cropped by the slider function, so the rounded bottom corners weren't visible, and suggested adjusting the image sizes, which I've done. However, there's now a new issue: if 'Slider Image Size' is set to 'contain', when window size is narrowed, the images are less than 300px tall and the slider controls are visible (i.e. the controls are not 'responsive'); if 'Slider Image Size' is set to 'cover', the corners aren't rounded. My preference would be for the slider controls to be responsive, but if I have to settle for 'cover' and a fixed height for the slider, at least I'd like to have the corners rounded.

#607676

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Anthony,

Thank you for contacting our support forum.

Could you try using this css.

.item{
border-radius:26px
}

.carousel-control.right{
border-radius:26px
}
.carousel-control.left{
border-radius:26px
}


Please let me know if this helps.
Thanks,
Shane

#607708

Hi Shane -

Using the CSS you suggested above, with Slider Image Size set to 'cover', all four corners get rounded, though not instantly - each slide image first displays with square corners and then an instant later the corners get rounded. That's a reasonable-enough solution for now - thanks.

It would be great if, at some point in the future, the slider controls were responsive when Slider Image Size is set to 'container' - perhaps you can suggest this to the developers?

#607709

I'm only opening this ticket again because I want to make sure this last comment of mine is seen:

It would be great if, at some point in the future, the slider controls were responsive when Slider Image Size is set to 'container' - perhaps you can suggest this to the developers?

Thanks again for your assistance.

#607752

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Anthony,

It would be best to open a new ticket for this and to explain the issue in a bit more detail.

This way we can discuss it further there.

Thanks,
Shane

#611342

message for developers in the management feedback below