A work around was to change the ImageScaleMode from “Cover” to “Contain”. But I never had to do this before and it would need to be updated on over 1200 sliders. Also when I change the setting to “Contain” you can’t click to enlarge the image to the original size.
Okay I’ve fixed my 3 part problem. I’ve adjusted 3 of your plugin files to use these hardcoded values:
1.) The files I modified this in were:
a.) ultimate-responsive-image-slider.php
b.) shortcode.php
c.) settings.php
The values changed are:
$WRIS_L3_Width = “100%”;
$WRIS_L3_Height = “auto”;
2.) I updated the database to reflect these changes for all existing slides.
3.) I also needed to add additional CSS to fix the ability to properly display the full image when it is expanded in the slide by adding this code to my themes Styles.css file:
.slider-pro.sp-full-screen .sp-image-container {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
.slider-pro.sp-full-screen .sp-image {
max-width: 100% !important;
max-height: 100% !important;
object-fit: contain !important;
}
My question now is… will a future plugin update revert my changes to the three files I have modified?
-
This reply was modified 6 days, 1 hour ago by
pbolduc99.
Thanks for using our plguin and resolving most of the things own your own.
We are not allowed to check your website: https://prnt.sc/P-1JjnfNynQn
Yes, the future update will remove all hardcoded changes.
WordPress allows enabling/disabling auto update in the Plugins page for every single plugin now, so you can disable it.
If there is a new update, it will show the Plugins page, but it does not auto-update the plugin. So, hard-coded changes will remain the same.
And if you want to go with update, need to manage hardcode changes manually.
I hope you liked the plugin, you can share your valueble feedback, here.
Thanks & Great Day