Article Box Image Crop

Hi :)

How do I enable cropping on the images used in the article boxes? 

I'd like my client to be able to upload any shape/size photo, but have the photo_wrapper and desc_wrapper always stay the same height.

Can this be achieved in CSS? 

Thanks in advance!

Comments

  • Hi,

    this can be done only under functions/theme-functions.php file where add_image_size() functions are. CSS won't work in this case at all.
  • Once I add in the image size I need to the functions, how do I then select this size in the admin area when I'm adding an article box on muffin builder?
  • You can't do anything under admin area because images create automatically and sizes are assigned automatically for items.
  • Sorry, I'm confused. Once I add the add_image_size() to my functions, how will the image inside my article box know to use this?
  • You can't add own functions. You can only modify existing functions because everything is coded. Anything except sizes modifications can not be done in files. But if you don't know how it works, we recommend to leave this and contact with your website developer.
  • I am the website developer. I'm just finding it hard finding out how to control the image size for article boxes. 

    I obviously don't mind using code or adding something to functions, but once I do, how will the article box relate to this? 
  • Sorry for previous message but we were confused with the size of images for article box item. Shortcodes and Muffin Builder items do not use any pre-defined sizes. The image you upload, you use and there is nothing to be changed. If you want to have a look on function responsible for article box shortcode/item, we recommend to check functions/theme-shortcodes.php file where sc_article_box() function is.
  • @carlysmith : i am having the same problem. did you figure out how to fix?
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.