Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding multiple portfolios to Minimum Pro & portfolio image question
Tagged: image sizes, minimum pro, portfolio
- This topic has 3 replies, 2 voices, and was last updated 11 years, 6 months ago by
Brad Dalton.
-
AuthorPosts
-
October 7, 2013 at 1:33 pm #65697
Wirebird
MemberI'm using Minimum Pro to build an artist's portfolio site. I'm wondering if anyone has had any success adding more than 1 portfolio to a site using this theme? I'd like to build the main portfolio page like the demo with all works and then portfolio pages that show collections of works?
Support suggested adding custom taxonomies and asking this question here. I don't have much experience in this area. Any guidance would be very much appreciated!
For the portfolios, I'm also having trouble with the thumbnail sizes. I've regenerated thumbnails twice and am now in the process of building custom images in PhotoShop to achieve the look I want but maybe I need to change the thumbs in Media Settings instead? The demo has 540x340 portfolio images but my current settings are as follows:
> thumbnails: 150x150
> medium: 300 x 300
> large: 1024 x 1024Any tips? I've looked all over for info on the correct image sizes for Minimum Pro to no avail.
Thanks!
Sara @ Wirebird Media – WordPress and Genesis web developer based in Bend, Oregon
October 7, 2013 at 8:30 pm #65779Brad Dalton
ParticipantDone this and its very easy. Simply copy all the PHP and use the same classes however make sure the CPT is unique.
Or you can follow this tutorial http://wpsites.net/web-design/add-responsive-portfolio-page-to-lifestyle-pro/
Then you can also add support or your new sizes to your child themes functions.php file:
//* Add new image sizes add_image_size( 'portfolio', 540, 340, TRUE );
I would make sure the images are exactly the right size or thye perfect aspect ratio so they look the best.
October 8, 2013 at 3:25 pm #65886Wirebird
MemberBrad - Thank you for the response! I need to break it down a bit further to be sure I understand what you mean....
So I'd copy the code from my existing archive-portfolio.php into a new Custom Post Type called, for instance, botanical-portfolio.php and portrait-portfolio.php? Would I need to adjust functions.php to register or call for the new Post Types in the code below? I'd keep all the images the same size - 540, 340.
//* Create portfolio custom post type
add_action( 'init', 'minimum_portfolio_post_type' );
function minimum_portfolio_post_type() {register_post_type( 'portfolio',
array(
'labels' => array(
'name' => __( 'Portfolio', 'minimum' ),
'singular_name' => __( 'Portfolio', 'minimum' ),
),
'exclude_from_search' => true,
'has_archive' => true,
'hierarchical' => true,
'menu_icon' => get_stylesheet_directory_uri() . '/images/icons/portfolio.png',
'public' => true,
'rewrite' => array( 'slug' => 'portfolio' ),
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo' ),
)
);}
Thank you for the help!
Sara @ Wirebird Media – WordPress and Genesis web developer based in Bend, Oregon
October 8, 2013 at 6:02 pm #65899Brad Dalton
ParticipantAlready written about adding a portfolio to at least 8 different themes and the process is pretty much the same.
I would follow the tutorial that i linked to above as that's what i use when i need to add another portfolio or duplicate them in any theme.
As long as the names, slugs, i'd's, file names and functions are unique you shouldn't have any problems.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.