Arconix Portfolio
[resolved] Image sizes? (6 posts)

  1. zelky
    Posted 3 years ago #

    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.


  2. zelky
    Posted 3 years ago #

    I think I found it:


    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.

  3. zelky
    Posted 3 years ago #

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

  4. zelky
    Posted 3 years ago #

    Forgot to resolve.

  5. John Gardner
    Plugin Author

    Posted 3 years ago #

    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/

  6. zelky
    Posted 3 years ago #

    Hi John,

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Arconix Portfolio
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.