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!
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!
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
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