Featured Image resize and Crop

Hey,

I have to resize and crop all images of my website for featured images on blogs. Point is : there is no "Blog: style Masonry Tiles" for "This size is being used for".
I need to use 1 blog with grid and 1 blog with Masonry Tiles. Why can't we resize for Masonry Tiles aswell ? How can we change that ? (I mean, is it possible to add this personally in code ?)

Comments

  • Hi,
    You can do it with css. We can help you with that but you would need to give us a link to your website and describe, with screenshots preferably, what do you want to change.
    thanks
  • edited March 2017
    Here the link of the discussion on themeforest : https://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048/comments?page=446&filter=all#comment_15932396

    In css I can hardfix width and height but image will not be rezized/cropped correctly. Or I don't know yet how to do it.
    I will describe with screenshots :

    /deleted/

    I need to rezize images for blog in 275x275.

    For "Blog Grid" and "Related Posts", it's fine, as expected :

    Grid :

    /deleted/

    Related Posts :
    /deleted/

    But with Blog: style Masonry Tiles, it's not cropped and rezized as indicated. So I have this :
    /deleted/

    It can't be validate. I need the same format for all without being degraded, like "grid" format. I’m actually studying “content-post.php” and “theme-functions.php” but I have not yet succeeded.
  • edited March 2017
    Ok I think I have it.
    In content-post.php , // photo | Style != Masonry Tiles , $output .= get_the_post_thumbnail( get_the_ID(), 'blog-portfolio', array( 'class'=>'scale-with-grid', 'itemprop'=>'image' ) ); instead of 'full'. Quite simply. Correct ? :)
  • Please send a link to your website.

     This should be working.
  • I actually can't send a link, it's in a private dev environnement, I have to clone it somewhere else.
    But yes, it is working with this change. Problem solved :)
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.