Support » Plugin: Arconix Portfolio » Image sizes?

  • Resolved zelky

    (@zelky)


    I added two new portfolio items and the images are bigger. They are near the bottom…Adam Chabib and Youssef Dib. The image size is 275 x 200 where as the other images are 275 x 139.

    Is there somewhere to adjust the image size? I think I did originally, but I think an update to the plugin may have changed the image size back to what it was?

    Thanks in advance.

    http://wordpress.org/extend/plugins/arconix-portfolio/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think I found it:

    arconix-portfolio/includes/class-portfolio.php

    add_image_size( ‘portfolio-thumb’, 275, 200, TRUE );

    I changed the 200 to 139…but something else is now making the images narrower than the rest. I’ll try re-uploading them now that I have change the size in the php file.

    All good now! I love this plugin…thanks again for the updates and earlier support.

    Forgot to resolve.

    Plugin Author John Gardner

    (@jgardner03)

    I’m glad you got everything figured out… For the future, I’d suggest not editing the plugin files directly because you’ll lose those changes when the plugin is updated. The better way to make this change you wanted is to go into your theme’s functions.php file, and add a line that reads:

    add_image_size( 'my-new-thumb', 275, 139, TRUE );

    Then modify the portfolio shortcode to look like so:

    [portfolio thumb="my-new-thumb"]

    Naturally you can rename “my-new-thumb” to anything you’d like so long as it’s not the same as an existing image size. Also, to make sure your existing images get resized properly to your new image size, I’d suggest the following plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/

    Hi John,

    Thank you for your great advice. I’m very much a novice with PHP.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image sizes?’ is closed to new replies.