- This topic has 3 replies, 2 voices, and was last updated 9 years, 11 months ago by Sakin.
-
AuthorPosts
-
May 20, 2014 at 11:36 pm #31548GregKMember
Hi,
http://www.comfortablekitchen.com
I’d like to resize the main page thumbnails to 175×175. I tried using this css and regenerate thumbnails which didn’t work.
add_image_size( ‘featured’, 175, 175, true); // uses on homepage featured image
thanks again for your help
GregMay 21, 2014 at 4:54 am #31572SakinKeymaster@GregK: There is no option to change to 175×175. But if you upload the Featured Image of this size then it will show 175×175. But if you upload the larger size then it will crop into exact 210×210.
But if you want to make in 175×175 as default even when you upload the large image, then you need to build child theme and then copy
content.php
file from simple-catch theme to your child theme and replace the code:
<?php the_post_thumbnail( 'featured' ); ?>
With the following code:
<?php the_post_thumbnail( 'thumbnail' ); ?>
Then activate your child theme and go to “Settings => Media” form your WordPress Dashboard and then in “Thumbnail size” type in width 175 and height 175, select “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” and Save Changes. After this you can use “Regenerate Thumbnails Plugin” and regenerate thumbnail which will change your thumbnail image in all your old post.
May 21, 2014 at 6:30 am #31583GregKMemberHey Sakin,
Thanks for your response.
I went into the main code (not child theme, which I have) and made the adjustments. I was able to do it, but it just didn’t look right. It really made everything else look worse.
I guess I learned you can’t change one thing and expect everything else to adapt to that change.
Thanks again, sorry to waste your time. This is something I want done but it will have to be custom and later on.
Cheers,
GregMay 21, 2014 at 9:37 pm #31686SakinKeymasterYes Greg, It’s bit difficult one. You can check this tutorial for building child theme http://catchthemes.com/blog/create-child-theme-wordpress/
-
AuthorPosts
- The topic ‘Main Page Thumbnail Resize?’ is closed to new replies.