How to change thumbnails

Community Forums Forums Design Tips and Tricks How to change thumbnails

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  braddalton 11 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40557

    yolohtzin
    Participant
    Post count: 25

    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.com
    #40559

    braddalton
    Participant
    Post count: 7473

    The 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.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #40575

    yolohtzin
    Participant
    Post count: 25

    hi – 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

    #40583

    braddalton
    Participant
    Post count: 7473

    What changes are you referring to Heather?


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #40596

    yolohtzin
    Participant
    Post count: 25

    I 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

    #40603

    braddalton
    Participant
    Post count: 7473

    I’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.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.