WordPress.org

Ready to get started?Download WordPress

Forums

Hey Cookie
Thumbnail - Search results and tag or catefories pages (6 posts)

  1. vanessavolk
    Member
    Posted 1 year ago #

    I have a doubt about the thumbnails. I would like to know whats is necessary to do for the images won't appears distorted in the square formate of the thumbs when someone make a search or click on a category or a tag.
    I read the informations of this link http://codex.wordpress.org/Post_Thumbnails and tried to edit the functions.php file

    Look to exemples of my site, http://www.vanessavolk.com.br/?s=jo%C3%A3o+pessoa&submit=Ir and http://www.vanessavolk.com.br/tag/arquitetura/

    the images appears distorted, I would like that the thumb make a crop on them. Is possible?

    Thanks a lot

  2. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    You may need to install and run a plugin like Regenerate Thumbnails to get them to display properly: http://wordpress.org/extend/plugins/regenerate-thumbnails/

  3. vanessavolk
    Member
    Posted 1 year ago #

    Hi Caroline
    Thanks for your answer. This didn't work. This plug change all the thumbs in my galleries, but the squares images don't. I tried the "Post Thumbnail Editor" too

    In your website, when I click on a cathegory the images don't appears distorted
    http://heycookie-demo.calobeedoodles.com/category/uncategorized/
    This group of images is "big-grid-thumb"? I need to change something in functions.php?

    Thanks

  4. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    You shouldn't have to modify anything to get the thumbnails hard-cropped, that's the default behavior.

    Next, I would try deactivating any plugins to rule out a conflict.

    It also looks like you're using a child theme -- try activating the parent theme (and Regenerate Thumbnails again) to see if one of the changes made in the child theme is causing a problem.

  5. vanessavolk
    Member
    Posted 1 year ago #

    Hi Caroline
    Thanks for your attention,
    I was using a child theme to try to edit without problems,
    I deleted the theme and install again and desactived a plugin,
    After doing this I use the Regenerate Thumbnails, and failed :(
    Thanks for your help

  6. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    Ahh, it looks like each post is pulling the first attached image, which does not get cropped. You should set a featured image for each of your posts, that will cause the images to be hard-cropped. The first attached image is a last-ditch effort to put something in the thumbnail area if the featured image fails.

    In your child theme, you may be able to change line 75 in index.php from wp_get_attachment_image_src( $attachment->ID, 'medium' ); to wp_get_attachment_image_src( $attachment->ID, 'big-grid-thumb' ); (haven't tested this so not sure if it will work, but it's worth a try).

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic