• Resolved Sparkey

    (@sparkey)


    I am wondering if there is some CSS or something I can add to force my thumbnails to line up better.

    Of course if I had selected featured images more carefully in the first place, but now I have landscape and portrait thumbnails creating a mess.

    Simple plugin to do what I need to accomplish on just a few posts though.

    Thank you

    • This topic was modified 4 years ago by Sparkey.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Sparkey,
    I think it has to do with the way images are cropped. Currently they are set to keep their ratio, like 900×300 will become 300×100.
    You can set the option to crop hard towards the 300×300 ratio. If you decide to do that, it will happen on all images for that thumbnail size.
    This plugin is using medium size thumbnails. You could add this code to the functions.php of your theme, preferably a child theme.
    update_option( 'medium_crop', 1 );
    You will probably need to regenerate your thumbnails. There are plugins to do that.

    Is this a good answer for you?

    Thread Starter Sparkey

    (@sparkey)

    Thank you for taking the time to look at this, I just have had some time today to try it, and I am worried I will mess something up on our website.

    I have added your “update” line to the function file and I am ready to upload it.

    I found Alex Mills “Regenerate Thumbnails” and have added that to the site to run after I upload the function.

    My only question, if this messes one of the themes views, which we really like, can I remove the function and rerun the regeneration of the thumbnails and will things go back like they are now?

    Thank you again for your time
    Randy C (Sparky)

    After activating the plugin I see this list and wonder if your update function might not even make some of the 98 current featured images look better!

    These are all of the thumbnail sizes that are currently registered:

    thumbnail: 150×150 pixels (cropped to fit)
    medium: 300×300 pixels (proportionally resized to fit inside dimensions)
    medium_large: 768×0 pixels (proportionally resized to fit inside dimensions)
    large: 1024×1024 pixels (proportionally resized to fit inside dimensions)
    featured-blog-large: 750×350 pixels (cropped to fit)
    featured-blog-medium: 270×270 pixels (cropped to fit)
    featured: 642×300 pixels (cropped to fit)
    featured-blog-medium-small: 230×230 pixels (cropped to fit)
    fpw_square: 200×200 pixels (cropped to fit)
    fpw_banner: 400×150 pixels (cropped to fit)
    fpw_big: 400×600 pixels (proportionally resized to fit inside dimensions)

    • This reply was modified 4 years ago by Sparkey. Reason: more info
    Plugin Author Marcel Pol

    (@mpol)

    Hi Sparkey,
    About your question if it will mess up things, I don’t know ??

    It depends on if your theme or another plugin uses the 300×300 medium images, and if it requires them to be proportionally sized.
    Regenerating thumbnails will add the new cropped thumbnails to the /uploads folder, it will not remove the older thumbnails, so current inline images will be fine.
    For new images it will only provide cropped medium thumbnails in 300×300. If there is a dependency on proportinally sized images, you might get odd results. It will be visible to you then, so there is no immediate problem.

    If you do run into problems, let me know here. I would be open to make it customizable to use a different thumbnail size, as alternative to medium size which is now hardcoded in the plugin.

    Thread Starter Sparkey

    (@sparkey)

    That worked fine sir. I would have been fine to try it on a personal site, but this one is a site for a non-profit I volunteer for, a site that actually has visitors :0)

    I searched all the “you might also like” plugins for hours, I think your plugin makes it simple where necessary without cluttering up every page.

    Thank you again for helping me out and I noticed you have noted on many of your plugins that they are compatible with ClassicPress, thank you for that too. I am working on finding time to convert this non-profit site over soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thumbnail Alignment’ is closed to new replies.