Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How do I crop a grid of page thumbnails to a specific size

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36483
    sanclementejoe
    Participant

    On the front page of my website I am displaying all of the artist pages (this is an art gallery website) on the front page in a grid with the page name and thumbnail. It’s working fine, but the sizes are a little different for each. How to I crop the images so they are all a perfect square? I am doing this in wordpress.

    #96103
    vindicateme
    Participant

    you can set the thumbnail to a specific size by using

    the_post_thumbnail('thumbnail');

    then edit the thumbnail size in your media settings

    #96110
    TheDoc
    Member

    @vindicateme is correct, the_post_thumbnail is your friend! You’ll need to set it up in your functions.php though. Once you do, it’s super handy. Here is a write up that I did for it: http://code.graygilmore.com/blog/using-wordpress-featured-image-post-thumbnail

    If you have any questions, just ask here!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.