Square Archive Image Using Grid -> Grid Type Fit Row

  • Posted in : Episody
  • Glark
    Participant

    I would like to get the blog > grid type > fit rows to use square images like it does in the masonry mode. I don’t see an customization option for it.

    Happy to create a child theme change for it if you can point me in the right direction.

    Masonry: https://www.dropbox.com/s/a3yzvyjydxada79/masonry.png?dl=0
    Fit Row: https://www.dropbox.com/s/otsbwbbq3mqk0l0/fitrow.png?dl=0

    serkan
    Moderator

    Hi Glark,
    Could you please run the regenerate thumbnail plugin once and try it again.
    https://wordpress.org/plugins/regenerate-thumbnails/
    If you still have the issue, provide me your wp admin details via our private content box below.
    Thanks

    Glark
    Participant

    Thank you @serkan. I did that but I don’t think it’s a case of the image is being displayed incorrectly in but rather “fit row” uses a 16:9 (or so) aspect ratio but “masonry” uses a square 1:1.

    ETA: Found the code to change on my end:

    functions-layout-grid.php

    if ($blog_grid_type == ‘fitRows’)
    {
    the_post_thumbnail(‘episody_image_size_4’);
    }
    else
    {
    the_post_thumbnail(‘episody_image_size_2’);
    }

    And just changed that 4 to 2.

    serkan
    Moderator

    Hi, Thanks for the feedback.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register