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.