On modality pro 1.05. tried all of those mods and no luck. Setup a child theme to play around with the code and workaround this for now. Really hope this will be fixed soon and included in the next update or someone has a fix they can share. I kept making smaller images to try and get them to fit but it just kept zooming in on them, this one seems like something that should be so simple but is really frustrating.
Here’s a temporary workaround that I’m playing with and rather than change background-size:cover and settings in modality-image-sliders.php which I tried at length, I edited the slider in section 7 of the child style.css.
I added a line in for color to match with the background of the website. Otherwise there was a black background showing up in between each image when they changed since the images didn’t cover the full space.
Then I set the size to contain so the full image would show up and what I’ll do is resize all of my slider images to the exact same size so they look consistent.
background-color: white;
background-size: contain;
/* ------------------------------------------------------------------------- *
* 7. Image Sliders Styles
/* ------------------------------------------------------------------------- */
.ideal-image-slider {
position: relative;
overflow: hidden;
}
.iis-slide {
display: block;
bottom: 0;
text-decoration: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: 50% 50%;
background-color: white;
background-size: contain;
text-indent: -9999px;
}