WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. zelky
    Member
    Posted 1 year 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.

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

  2. zelky
    Member
    Posted 1 year ago #

    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.

  3. zelky
    Member
    Posted 1 year ago #

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

  4. zelky
    Member
    Posted 1 year ago #

    Forgot to resolve.

  5. John Gardner
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.