WordPress.org

Forums

Portfolio Press
[resolved] Main Page Thumbnail size (4 posts)

  1. KarenB88
    Member
    Posted 1 year ago #

    I'm using Portfolio Press as my Animation/Game art portfolio, and I really like it.

    However, rather than have the square-grid thumbails on the front page, I'd much rather have my thumbnails wide and stacked from top to bottom.

    I've achieved this by fiddling some with the codes, but now I've run into a problem. I've managed to widen and stack my thumbnails as I wanted, but the height is too large, and the images I've used are cropped, with a large of part of them having turned black, as seen here: http://www.karenbennetzen.com

    Any way to fix this? I feel like I've come really close to achieving what I want, but my knowledge of website coding is minimal, and I'm not sure how to get to this last step.

  2. KarenB88
    Member
    Posted 1 year ago #

    Update: I've managed to resize the thumbs so they fit the width and height I want - yay!

    But I still got the black bar and cropping problem. Anyone know how to fix that?

    Also, this is the code I've been fiddling with, in the functions.php, and with my corrections:

    // Add images sizes for the various thumbnails
    add_image_size( 'portfolio-thumbnail', 300, 175, true );
    add_image_size( 'portfolio-thumbnail-fullwidth', 300, 175, true );

  3. KarenB88
    Member
    Posted 1 year ago #

    Update 02: I've made some changes to the site so it doesn't serve as an example anymore. I think I'm gonna just make a new homepage from scratch, with my own thumbnails. Seems easier at this point. :)

  4. Devin Price
    Member
    Theme Author

    Posted 1 year ago #

    After you create new thumbnail sizes, make sure to regenerate your thumbnails:
    wordpress.org/plugins/regenerate-thumbnails/

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic