Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Is it possible to set image height somehow with the image widget?
I would like a max height of, say, 300px and for the widget to crop the image accordingly.
Thanks!
Hi Adam,
Yes, it’s possible to do this but it depends on the type of crop you’re after. If you’re after a standard WordPress image crop, no, this isn’t possible without some custom coding. If you’re okay with the image simply being resized with CSS, than yes, this is possible.
For the latter, please open the SiteOrigin Image widget you wish to affect and head over to the Widget Styles sidebar. Set the Widget Class to max_height-300 and then save the page. Please navigate to WP AdminAppearanceCustom CSS and add the following CSS:
How does that look?
You might also need to install the SiteOrigin CSS Editor.
For the former, we recommend using Codeable. You’ll be able to hire someone at an hourly rate to do this work for you.
Great!
Thanks so much for your help!
-Adamdagg