Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to change thumbnails
Tagged: image resize, modern portfolio, thumbnail
- This topic has 8 replies, 3 voices, and was last updated 10 years, 1 month ago by suburbanite.
-
AuthorPosts
-
May 12, 2013 at 8:22 am #40557yolohtzinMember
Hi - I am relatively new to coding and am trying to figure out what I've done wrong - I am using Modern Portfolio theme - http://sunshinememoirs.com - In the functions.php it shows:
// Add new image sizes
add_image_size( 'blog', 320, 120, TRUE );
add_image_size( 'portfolio', 320, 210, TRUE );// Add new image sizes
add_image_size('blog', 1500, 700, TRUE);
add_image_size('portfolio', 1500, 700, TRUE);// Add new image sizes
add_image_size('blog', 300, 700, TRUE);
add_image_size('portfolio', 300, 700, TRUE);However, when I go into a widget to choose thumbnail size for Blog & Portfolio the onlythumbnail sizes available are:
150 x 150 and 300 x 700
I uploaded Regenerate thumbnails plugin
and am lost
Could someone please help me - thanks so much! Heather
http://sunshinememoirs.comMay 12, 2013 at 8:57 am #40559Brad DaltonParticipantThe custom sizes you are using in your child themes functions.php file aren't using unique names:
Change them so they all use a unique name:
Example:
add_image_size ( 'blog', 320, 120, TRUE ); add_image_size ('portfolio', 1500, 700, TRUE); add_image_size ('custom', 300, 700, TRUE);
You don't need to add another size which is the same as an existing size as it only creates an extra image every time you upload a new image in WordPress.
Also, sometimes when you copy and paste PHP code incorrectly, it can change the apostrophes causing errors.
Always use a text editor like Notepad++ and paste the code at the end of your child themes functions file rather than using the built in WordPress theme editor.
May 12, 2013 at 1:16 pm #40575yolohtzinMemberhi - it worked - thanks - so I can just put code at the bottom when I make changes - it doesn't need to go in area where it already is? Thanks! Heather
May 12, 2013 at 1:49 pm #40583Brad DaltonParticipantMay 12, 2013 at 5:13 pm #40596yolohtzinMemberI was referring to thumbnail sizes for Blog & Portfolio on Home Page
This is what i have in php now - is this good or is there sizes I can add or delete:
// Add new image sizes
add_image_size( 'blog', 320, 120, TRUE );
add_image_size( 'portfolio', 320, 210, TRUE );
add_image_size( 'blog', 320, 210, TRUE );// Add new image sizes
add_image_size( 'blog', 1500, 700, TRUE );
add_image_size (‘portfolio’, 1500, 700, TRUE);
add_image_size (‘custom’, 300, 700, TRUE);*******
Please see these 2 posts - http://sunshinememoirs.com/boat-delete/ this one has thumbnails
http://sunshinememoirs.com/beach/ - This post has satellite slideshow gallery
Do you like both ways or one better than the other - satellite slideshow is supposed to be responsive - i have been told it's not good to use slideshows for mobile sites - is this true
I have had good luck with fancybox so used it again
My other question is - I will keep blog and portfolio 'thumbnails' the same size - I chose custom 300 x 700 thumbnail size
What size photos do you suggest I add to the site posts & portfolio posts please-
Thanks again - I'm almost ready to start adding content - not much more to do - this template has been surprisingly easy to set up - even for a non-techy like me
Heather
May 12, 2013 at 6:58 pm #40603Brad DaltonParticipantI'd add full content width sizes to single posts with thumbnails for 3 smaller images below them and use around 150-200 for archives. I use 300 X 150 for archives.
I think the Jetpack Carousel plugin with the native WordPress gallery is the best.
August 14, 2014 at 1:44 pm #118847suburbaniteMemberI'm having a similar problem. I would like to change the size of the portfolio thumbnails on my site to be 200x200. Here's the code in my functions file:
//* Adds port page genesis_register_sidebar( array( 'id' => 'page-portfolio', 'name' => __( 'Page - Portfolio','mpp' ), 'description' => __( 'This is the portfolio section to the Portfolio Page.','mpp' ), ) ); add_image_size( 'portfolio', 200, 200, TRUE );
But it looks like it's still defaulting to 200x300 if I inspect the element. Obviously, also I need to upload some images that are 200x200 in its place as well.
You can see the site here.
August 14, 2014 at 8:43 pm #118888Brad DaltonParticipantYou need to regenerate thumbnails.
Only new uploaded images will be cropped to the new size.
Existing images are not re-sized.
August 16, 2014 at 7:17 am #119194suburbaniteMemberThat worked perfectly, thank you!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.